Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Jacob84

Compiling problem - OpenGL Related

This topic is 5615 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

Hi friends!!! I have a strange problem when using OpenGL, using Dev-C++ (gcc) or Visual C++ (6.0). I haven''t posted this on the OpenGL API forum because it''s not a problem from the API. Maybe I haven''t set up something correctly. The problem appears compiling code where appears this functions (for example, maybe there are others...): gluPerspective@32, glLoadIdentity@0, glMatrixMode@4, glViewport@16. The error over Dev-C++ appears defined as : [Linker error] undefined reference to `InitializeOpenGL(int, int)''. The error over VC6 appears defined as: GLInit.obj : error LNK2001: unresolved external symbol _gluPerspective@32 Help will be very apreciatted ... Greetings, Jacob. PS: This files are always included : #include <windows.h> #include <gl/gl.h> #include <gl/glu.h> #include <gl/glaux.h>

Share this post


Link to post
Share on other sites
Advertisement
did you add glu32.lib and opengl32.lib to the list of libraries under VC++ and -lopengl32 -lglu32 to your link command line on dev-c++?

[edited by - Kwizatz on July 27, 2003 6:47:56 PM]

Share this post


Link to post
Share on other sites

  • 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!