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