Skip to main content
GameDev.net gamedev.net
🔒 Locked

weird linking error

Started by Shmuel Jun 30, 2004 at 8:03 PM 3 replies 500+ views
Original Post
Shmuel
Shmuel
What exactly do all of these errors mean? 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: _fopen already defined in LIBCD.lib(fopen.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _fgetc already defined in LIBCD.lib(fgetc.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _fclose already defined in LIBCD.lib(fclose.obj) msvcrt.lib(MSVCRT.dll) : error LNK2005: _setvbuf already defined in LIBCD.lib(setvbuf.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/RPGEngine.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. RPGEngine.exe - 8 error(s), 3 warning(s)
case ShmuelPosted:StupidPosts++;
SiCrane
SiCrane
It sounds like you're using a library that uses a different version of the C runtime library than your application. Try reading the directions for any libraries that you're using. (Though chances are you need to change your executable's settings to use the DLL version of the runtime library. /MD or /MDd)
Shmuel
Shmuel
Thats weird because I'm using SDL along with audiere and I got this to compile on my other comp. Is it possible that a .lib or .dll in the wrong place could mess everything up like this?
case ShmuelPosted:StupidPosts++;
Shmuel
Shmuel
oh wait, nm i had to change the Use run-time library to: "Multithreaded DLL" Now it works fine. Im such an idiot.
case ShmuelPosted:StupidPosts++;
Qw3r7yU10p!
Qw3r7yU10p!
Quote:
Original post by Shmuel
Im such an idiot.

No you're not; it's a very common mistake. The error message gives you a clue, but to realise it's the standard platform libraries that need their settings changing and not SDL libraries isn't immediately obvious.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.