Advertisement

Header-File War

Started by March 30, 2001 08:59 AM
3 comments, last by THCForce 23 years, 7 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
You might need to #include window.h file too 'cause i think gl.h and glu.h needs it plus remember to add the .lib files

Edited by - brian_2000 on March 30, 2001 4:42:55 PM
MUD! MUD! MMMMMUUUUUUUUDDDDD!
Advertisement
To add the libraries, go to PROJECT -> SETTINGS -> click the LINK tab and add the following string:
opengl32.lib glu32.lib
-in the one-lined textbox. Hope that helps

Ciphersoftware website

Support the open source community

Ciphersoftware website

Support the open source community

i agree with brian_2000, you need to #include windows.h. ive had that problem today, I forgot to include the windows.h header. try that and it should work fine.
Dave
I''m pretty sure u have to #include windows.h B4 u #include the gl files.

baldurkarlsson

This topic is closed to new replies.

Advertisement