Sign in to follow this  
Ryszard

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

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

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