Header-File War
Hi there
i have a problem including some header-files ( gl.h, glu.h )
in my .cpp-file where a class of mine is defined.
1. Case, not "gl.h and glu.h" included:
lots of error-messages occur while compiling
i.e. : "Unknown identifier : "glVertex3f()"
and the other opengl related commands.
2. Case, "gl.h and glu.h" included:
countless errors, like:
d:\Programme\DevStudio\VC\INCLUDE\gl\gl.h(1135) :
error C2501: ''WINGDIAPI'' : Missing declaration
can somebody help ???
At Night it''s colder than Outside
It''s easy, I had that problem too...
you have to include windows.h before you include the gl stuff
eg.
#include
#include
#include
Feel free to email me.
you have to include windows.h before you include the gl stuff
eg.
#include
#include
#include
Feel free to email me.
[email=JValentine_13@hotmail.com]contact[/email]
OOPS!! I forgot the html tags would disappear!
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
Feel free to email me.
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
Feel free to email me.
[email=JValentine_13@hotmail.com]contact[/email]
March 30, 2001 11:47 AM
yep, he''s right. I too had that problem. Course, you can also have similar issues if you forgot libs, or are linking the wrong type of project (CUI/GUI/UNKNOWN)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement