PDA

View Full Version : FreeGLUT, glui e problema al linking


SilverXXX
28-10-2006, 12:06
Ho preso dai rispettivi siti le ultime versioni delle librerie nel titolo, le ho compilate senza problemi con visual c++ 6, e le ho installato. Ho poi provveduto a linkarle nella configurazione dei due progetti che dovevo compilare, ma nel secondo ricevo questo errore di linking compilando in modalità Release:
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBC.lib(free.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBC.lib(malloc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in LIBC.lib(realloc.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBC.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBC.lib(strncpy.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
Release/Esercitazione2.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
mentre in modalità Debug questo:

MSVCRT.lib(MSVCRT.dll) : error LNK2005: _fflush already defined in LIBCD.lib(fflush.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _malloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _realloc already defined in LIBCD.lib(dbgheap.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: __vsnprintf already defined in LIBCD.lib(vsnprint.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in LIBCD.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in LIBCD.lib(sprintf.obj)
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
Debug/Esercitazione2.exe : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.

Non capisco dove sia linkata LIBC al posto di MSVCRT. Qualcuno sa darmi notizie?

SilverXXX
30-10-2006, 09:52
Nessuno che sappia aiutarmi? :'(