Getting OpenGL working in Dev-C++

Started by
3 comments, last by lordcorm 17 years ago
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.
Advertisement
Are you linking the appropriate OpenGL libraries?
thats what im asking you...
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
Thanks rip-off :D it works now.

This topic is closed to new replies.

Advertisement