[SDL] problems compiling VC6 project

andy preston andy at prestonmedina.com
Sun Jul 14 08:04:01 PDT 2002


On Sun, 2002-07-14 at 07:36, Andy Livingstone wrote:
> Hi all, I'm having some problems compiling my first SDL project in VC6. I created an empty Win32 project and wrote a simple program to set the video mode, using OpenGL. For some reason, it failed to compile, giving me the error messages:
> 
>     msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
>     msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
>     msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj)
>     msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj)
>     msvcrt.lib(MSVCRT.dll) : error LNK2005: __isctype already defined in LIBCD.lib(isctype.obj)
>     LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs;         use /NODEFAULTLIB:library
>     Debug/gltest.exe : fatal error LNK1169: one or more multiply defined symbols found
>     Error executing link.exe.
>

This is a common VC problem, nothing to do with SDL. Add LIBCD to the
"ignore library" (I think thats what its called) line. In the release
version add LIBC.

Andy





More information about the SDL mailing list