Sign in to follow this  

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

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

This topic is 4764 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this