Pronlem with compiling
I cant compile my openGl demo! When i compile it stands :
"Error not found glu.h" but i have glu.h. Its strange
Help me
Speik
Speik
try using #include <GL\glu.h>
if it still doesn''t works, check your compiler and add the directory in which glu.h is located in to the existing list of include directories.
Example: Visual C++
Tools->Options->Directories. Then press the NEW button.
if it still doesn''t works, check your compiler and add the directory in which glu.h is located in to the existing list of include directories.
Example: Visual C++
Tools->Options->Directories. Then press the NEW button.
Actually, don''t
Otherwise, the compiler will interpret the \g as an escape code, which it isn''t.
#include <GL\glu.h>
, but #include <GL\\glu.h>
or preferably #include <GL/glu.h>
Otherwise, the compiler will interpret the \g as an escape code, which it isn''t.

Kippesoep
Writing it this way works fine:
You also have to include glu32.lib.
"To err is human, to really mess up requires a computer"
#include <gl\glu.h>
You also have to include glu32.lib.
"To err is human, to really mess up requires a computer"
"To err is human, to really mess up requires a computer"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement