Jump to content
  • Advertisement

Archived

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

thedigga007

OpenGL OpenGL, SDL, Windows, and Linux

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

Advertisement
Guest Anonymous Poster
RTFM. This is covered in detail.

Share this post


Link to post
Share on other sites
quote:
Original post by thedigga007
The problem lies where windows wants it to be a winMain and SDL is using - int main(void){}. My question is...how can I get it to compile on both systems w/out changing the source for each compilation? Is there anyway that I can say "#if defined(_WIN32) then do a WinMain" otherwise do a int main(void)?

See I get "Undefined reference to ''SDL_main''" (it explains this issue, even though the question is something else). SDL''s "WinMain" function is in the SDLmain library provided (you link to it statically).

quote:
Original post by thedigga007 How do people get around using extensions for both platforms?

You don''t get around using extensions, you just use them in a platform independent way. See SDL_GL_GetProcAddress.

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!