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
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
Edited by - brian_2000 on March 30, 2001 4:42:55 PM
MUD! MUD! MMMMMUUUUUUUUDDDDD!
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
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
Dave
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement