Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

BSXrider

gl.h problems

This topic is 6038 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I include gl.h in my main cpp file of my project. I wanted to add a draw() member function to one of my classes to I included gl.h in that file too. And now I get: c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2144: syntax error : missing '';'' before type ''void'' c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers c:\program files\microsoft visual studio\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found What gives? And how can I solve this? - seb

Share this post


Link to post
Share on other sites
Advertisement
You forgot to put a semicolon at the end of a line in your code, so the program can''t find the end of the code (I believe).

------------------------------
Simple DirectMedia Layer:

Main Site - (www.libsdl.org)
Cone3D Tutorials- (cone3D.gamedev.net)
GameDev.net''s Tutorials - (Here)

OpenGL:

Main Site - (www.opengl.org)
NeHe Tutorials - (nehe.gamedev.net)
Online Books - (Red Book) (Blue Book)

Share this post


Link to post
Share on other sites
No I didn''t. I knew someone would say that.

Anyway, I tried searching a bit harder and found this.

http://www.gamedev.net/community/forums/topic.asp?topic_id=64647

Thanks to siaspete, I could have been looking for a week had I not found that thread :D

- seb

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!