[SDL] Can´t link my project against SDL

Peter Mulholland darkmatter at freeuk.com
Tue Oct 3 03:18:16 PDT 2006


Hello Michael,

Tuesday, October 3, 2006, 11:07:48 AM, you wrote:

> Thanks, that worked :)
> Now I get a warning that msvcrtd.lib conflicts with other libraries and
> I should use /nodefault, do you know why this happens?

It happens because MSVC 2005 uses a different runtime library to what
SDLmain.lib is compiled for.

You can get around this in one of two ways:

1) recompile SDL in MSVC 2005 so you get a compatible SDLmain.lib
2) Add src/main/win32/SDL_win32_main.c to your project.

-- 
Best regards,
 Peter                            mailto:darkmatter at freeuk.com





More information about the SDL mailing list