Sign in to follow this  
lordcorm

Getting OpenGL working in Dev-C++

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this