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

Started by
1 comment, last by kumikana 19 years, 4 months ago
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
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.
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/
________________________________________Kloonigames Blog - Monthly Experimental Games

This topic is closed to new replies.

Advertisement