Sign in to follow this  
Mr Virtual

How to get rid of linker errors?

Recommended Posts

Mr Virtual    122
Hi everyone Whenever I compile an OpenGL project, it gives me some linker errors and I have to manually add a linker file (or whatever) to the project. Isn't there a way out? Can't all the files get automatically linked to my projects? I am using Dev C++ IDE. Thanks Mr V

Share this post


Link to post
Share on other sites
mikeman    2942
Quote:

Can't all the files get automatically linked to my projects?


What all files? All files that exist in your harddrive?

If you want to use OpenGL, you have to link to OpenGL. I don't undrestand what you see so weird about that.

Share this post


Link to post
Share on other sites
Mr Virtual    122
To be more specific, I always get a linker error in which all the functions in lglu32 library are unidentified. Until and unless I add the library -lglu32 in the linker section, the error does not go away.

Share this post


Link to post
Share on other sites
Winegums    286
Quote:
Original post by kiwibonga
You can probably set up a new project type that comes with the libs already specified...


the alternative would just be to create a basic openGL app with fundimental functionality, then copy it and use it as a base for future applications.

Share this post


Link to post
Share on other sites
mikeman    2942
Quote:
Original post by Mr Virtual
To be more specific, I always get a linker error in which all the functions in lglu32 library are unidentified. Until and unless I add the library -lglu32 in the linker section, the error does not go away.


Yes, Mr Virtual, we know. Until you add the library, the linker does not know where to find these functions. Does that makes sense? What else can be done, have the linker search through your harddrive and the internet and link all the libraries it can find?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this