Jump to content
  • Advertisement
Sign in to follow this  
Foobar of Integers

OpenGL OpenGL won't compile in VC6

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

This seems to be a common problem according to my Googling, but I've yet to find a solution. I'm trying to compile my code in Visual C++ 6.0, but it gets 30 errors on gl.h, all the Windows API stuff from the looks of it. I've linked all the various SDL and OpenGL / GLU libraries that I need (using SDL_OpenGL) and it compiles fine on Linux, but no luck in Windows. Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
From what I can find at a glance, it seems like strsep() is a BSD only thing and thus not part of the standard.( MSDN )

// Eric

Share this post


Link to post
Share on other sites
For future references if you are using OpenGL with SDL, you should not need to include the gl.h file manually since the SDL_OpenGL.h does it for you. What you need to do is just include SDL.h first, then SDL_OpenGL.h next and you *should* be all set.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!