Getting OpenGL working in Dev-C++
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.
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement