OpenGL and dev c++

Jan 16, 2010 at 10:13am
closed account (zTUXoG1T)
Hello all i trying to get opengl in dev c++ to work with it . i dont know why it dont work i read many tutorials how install it but i allways get errorä
GL/glut.h: no such file directory
build error main.o error 1



and this i get allways when i wanna compile
#include <GL/glut.h>


the way i installed is i have created a folder named glut in it i have include --> GL
then i have lib and there i have glut library files and in GL i have glut.h and this i have in C:\ and in dev c++ i have set directories in compile options and i have setted new directories. to c:\glut\include\GL and lib directory C:\glut\lib


and it no work dont know someone what im doing wrong ? or have someone a tutorial wich working for dev c++
Jan 16, 2010 at 10:22am
Well, if you've set the include directory to "c:\glut\include\GL" then the file you want is "glut.h", not "GL/glut.h". If not and I only misunderstood you, I have no idea what could be wrong.
Jan 16, 2010 at 10:46am
closed account (zTUXoG1T)
hmm im getting the same error :(
Jan 16, 2010 at 11:21am
I suggest you to change IDE, Dev-C++ is outdated.
http://www.cplusplus.com/forum/articles/7263/
Jan 26, 2010 at 3:27pm
you must install glut lib in dev c++

in dev c++ chose Tools -> Check for updates...
then chose devpaks.org Community Devpaks
press Check for Updates and in list which will appear find "glut" , download them and your #include <GL/glut.h> will be work.

PS sorry for my mistakes in grammatical =)
Topic archived. No new replies allowed.