Jump to content
  • Advertisement
Sign in to follow this  
Ryszard

VC++ MFC Application & SDL. Is possible ???

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

Hi I want to use G3D library in MFC Applitcation in Visual Studio 6.0 I got : sdlmain.lib(SDL_win32_main.obj) : error LNK2001: unresolved external symbol _SDL_main This is problem becouse MFC Application has not 'main' function. How to solve this problem ? greetings Ryszard

Share this post


Link to post
Share on other sites
Advertisement
This is indeed a very tricky problem. SDL uses its own program entry point while MFC apps use the standard WinMain() (though hidden). I *think* there is no other way around that than to modify the SDL sources and re-compile.

Share this post


Link to post
Share on other sites
There is a way around the problem. It is not the most elegant solution or the fastest, but it works.

Tom Wilson wrote a piece of code that does this. You can download it from: http://www.polplex.co.uk/~tigger/sdl/

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!