Linking problem

When I link my project (with VC++), I got the following errors:

xilink6: executing 'C:\PROGRA~1\MICROS~3\VC98\bin\link.exe’
SDLmain.lib(SDL_main.obj) : error LNK2005: _main already defined in main.obj
SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main
Release/diabolo.exe : fatal error LNK1120: 1 unresolved externals
Error executing xilink6.exe.

Although I use the “Multrithreaded DLL” model in the Link setting.

SDLmain.lib(SDL_main.obj) : error LNK2001: unresolved external symbol
_SDL_main

you have to add a ‘int main(int,char**)’ in your code
not ‘WinMain(…)’, not ‘main()’