VC++ MFC Application & SDL. Is possible ???
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
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/
Tom Wilson wrote a piece of code that does this. You can download it from: http://www.polplex.co.uk/~tigger/sdl/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement