I can't compile the bochs-2.4.2-src with MS Visual Studio 2008 when I use --with-sdl configuration parameter.
The compile works fine (still many warnings, though), but at the linking stage I get
Error 2 error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup LIBCMTD.lib bochs
I tried to follow http://bochs.sourceforge.net/doc/docbook/user/compiling.html#COMPILE-SDL as closely as possible. I added the path to SDL (for the bochs project and the gui project), the SDL.lib for bochs. I had to comment out line 63-65 in sdlkeys.h. I added gui/sdl.cc to gui, but I did not remove the gui/win32.cc, because then I get an unresolved symbole more.
Anyone knows who get it to compile?
I have to say, that I can compile the sources perfectly fine with the cygwin compiler (with SDL enabled!). So I can use SDL to get Bochs in fullscreen running on my Windows 7 64x. (You have to specify fullscreen as display option).
You may wonder why I care about MSVC, by I started with that and spent much time to figure it out, and it still doesn't work!