I’m compiling OpenGL programs and the compiler can’t open the ‘Fl/gl.h’ file to compile. It’s weird because I’m also using the “Tricks of the Game Programming Gurus” programs and when I can compile these programs, the OpenGL programs won’t compile, and vice-versa.
It should be gl/gl.h.
Originally posted by Deiussum:
It should be gl/gl.h.
I agree. Instead of including the code from the hard disk, I typed it in (the .cpp file only) and that error still came up, even though I typed "#include <gl/glut.h> or #include “gl/glut.h”.
Did you install the glut header and library? GLUT is not part of the default MSVC setup.
Originally posted by DFrey:
Did you install the glut header and library? GLUT is not part of the default MSVC setup.
Yeah, I copied the GLUT header and library files into MSVC’s include and library files.
Did you place the header in the subdirectory called “gl” under the include-directory, or directly into include?
They should be place in include\gl, and nowhere else.