• Advertisement
Sign in to follow this  

Getting OpenGL working in Dev-C++

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

Ok, i cant get OpenGL to work with Dev-C++ i get these linker errors: [Linker error] undefined reference to `glFlush@0' [Linker error] undefined reference to `glLoadIdentity@0' [Linker error] undefined reference to `glClear@4' I have these header files: #include <iostream> #include <string> #include <vector> #include <SDL.h> #include <cmath> #include <windows.h> #include <gl\gl.h> #include <gl\glu.h> #include <gl\glaux.h> #include <glut.h> Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by lordcorm
thats what im asking you...


The answer is no.

Go to project->project objects->parameters->linker and add:

-lopengl32

For any glu/glut functions you use you'll need to link to other libraries. See your c:\path\to\dev-cpp\lib\lib*.a

Share this post


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

  • Advertisement