[SDL] Problem with SGE

John Popplewell john at johnnypops.demon.co.uk
Mon May 19 22:03:01 PDT 2003


Hi,

> msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in 

suggests that the release version of MSVCRT is being used.

> LIBCD.lib(crt0dat.obj)

suggests that the debug version of LIBC (single threaded) is being used.

(1) first of all make sure that all static libraries and DLLs linked to
are either _all release_ or _all debug_ in nature.

(2) all static libraries and DLLs used _must_ link to MSVCRT which
translates, in MSVC++, to:
"Project Settings|C/C++|Category:Code Generation|Use run-time library:
Multithreaded DLL or 
Debug Multithreaded DLL". 

Anything else generates these warnings/errors and can cause various 
run-time problems if you do manage to get it to link with mixed-up 
versions of the RT.

Good Luck,
cheers,
John.


----- Original Message ----- 
From: "JVFF Programming" <jvffprogramming at ieg.com.br>
To: "SDL Mailing List" <sdl at libsdl.org>
Sent: Tuesday, May 20, 2003 3:25 AM
Subject: [SDL] Problem with SGE


> I changed from SDL_prim to SGE (SGE has a good texturing func!). I 
> compiled SGE.dll normally with a few fixes on code (mostly for(int i = 
> 0;i>5;i++) cause it saidmultple declarations so I renamed i to i2, i3, 
> i4, etc.). Now I'm getting errors on compile the alpha test. I had to 
> insert a new project alpha_test because sge_tests had all the sources 
> (so when it linked it says multiple declaration of _main). I'm gettin 
> some sort of conflict between libs:
> 
> --------------------Configuration: alpha_test - Win32 
> Debug--------------------
> Linking...
> 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)
> msvcrt.lib(MSVCRT.dll) : warning LNK4006: _exit already defined in 
> LIBCD.lib(crt0dat.obj); second definition ignored
> msvcrt.lib(MSVCRT.dll) : warning LNK4006: _strncpy already defined in 
> LIBCD.lib(strncpy.obj); second definition ignored
> msvcrt.lib(MSVCRT.dll) : warning LNK4006: _fprintf already defined in 
> LIBCD.lib(fprintf.obj); second definition ignored
> msvcrt.lib(MSVCRT.dll) : warning LNK4006: _fclose already defined in 
> LIBCD.lib(fclose.obj); second definition ignored
> msvcrt.lib(MSVCRT.dll) : warning LNK4006: __isctype already defined in 
> LIBCD.lib(isctype.obj); second definition ignored
>    Creating library Debug/alpha_test.lib and object Debug/alpha_test.exp
> LIBCD.lib(crt0init.obj) : warning LNK4098: defaultlib "msvcrt.lib" 
> conflicts with use of other libs; use /NODEFAULTLIB:library
> Debug/alpha_test.exe : fatal error LNK1169: one or more multiply defined 
> symbols found
> Error executing link.exe.
> 
> alpha_test.exe - 6 error(s), 6 warning(s)
> 
> 
> 
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl




More information about the SDL mailing list