Advertisement

Header-File War

Started by March 30, 2001 09:00 AM
2 comments, last by THCForce 23 years, 10 months ago
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.
[email=JValentine_13@hotmail.com]contact[/email]
Advertisement
OOPS!! I forgot the html tags would disappear!

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>

Feel free to email me.
[email=JValentine_13@hotmail.com]contact[/email]
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