Jump to content
  • Advertisement

Archived

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

MARS_999

OpenGL Windows XP and OpenGL not working???

This topic is 5990 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

Ok, I am using SDL and OpenGL. I tried to compile my code using MSVC++ 6, and my includes for OpenGL error out my code? error C2144: syntax error : missing '';'' before type ''void'' c:\c++\vc98\include\gl\gl.h(1152) : error C2501: ''WINGDIAPI'' : missing storage-class or type specifiers c:\c++\vc98\include\gl\gl.h(1152) : fatal error C1004: unexpected end of file found Error executing cl.exe. main.obj - 3 error(s), 0 warning(s) That is the error? Don''t understand why this is, I am including gl.h and glu.h in my header file? Any ideas thanks. Please forgive me! =)

Share this post


Link to post
Share on other sites
Advertisement
I think something is wrong.

The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu''l-Ala-Al-Ma''arri (973-1057; Syrian poet)

Share this post


Link to post
Share on other sites
very odd
I have compiled a OpenGL program under windows XP but i used MSVC++ 7 (the c++ compiler that comes with dev studios.NET beat 2 and probably the final release)

Share this post


Link to post
Share on other sites
quote:
Original post by Brother Bob
I bet you didn''t include windows.h before GL/gl.h.


Sure as Shi! that was the problem. I didn''t think I needed windows.h when I was going to be using SDL??? But now I have a new problem with OpenGL.

c:\c++\code\shootemup\main.cpp(148) : error C2065: ''GL_ONE_MINUS_CONSTANT_ALPHA'' : undeclared identifier

get that error, is this something new to OpenGL1.2 or 1.3? I know windows uses OpenGL1.1 the version that comes with MSVC++ 6.0 in the includes, but I am using a radeon 8500 and don''t know where to get a SDK for OpenGL to use with it?

Please forgive me! =)

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!