Advertisement Jump to content
Sign in to follow this  
sab3156

OpenGL gluPerspective (undefined reference???)

This topic is 4992 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am running opengl through Dev-C++. here is my linker output: ___________________ c:\programming\game\_main.o(.text+0x84):_main.cpp: undefined reference to `gluPerspective@32' ___________________ what is this about?? how can i fix this problem?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by odiousangel
I'm not totally familiar with dev-c++ compiler messages, but I'm pretty sure it just means you aren't linking your project to glu32.lib


Correct, to link in that .lib file to Dev-CPP you need to add in -lglu32 to the Linker Box in Project->Project Options->Parameters.

Share this post


Link to post
Share on other sites
With visual c++, when you link something using the project options, it links it only for the application from within the IDE. To make it link the libs to the actual .exe, you need to put a precompiler message in there. But I could be wrong, this is how I understood it. It may or may not apply to your compiler/IDE(Dev C++).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!