linker errors

Mar 24, 2010 at 12:38pm
what is casuing these following linker errors:

1>------ Build started: Project: Dark GDK - 3D Game1, Configuration: Debug Win32 ------
1>Linking...
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>MSVCRT.lib(ti_inst.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>Debug\Dark GDK - 3D Game1.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Users\King Joshua\Documents\Visual Studio 2008\Projects\Dark GDK - 3D Game1\Dark GDK - 3D Game1\Debug\BuildLog.htm"
1>Dark GDK - 3D Game1 - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Mar 24, 2010 at 2:40pm
Did you write a type_info class?
There already is one. See typeid in http://www.cplusplus.com/doc/tutorial/typecasting/
Try renaming your class...
Mar 24, 2010 at 3:36pm
I think this is a library conflict. You need to change your build settings to use a different runtime library.

Go in Project | Settings, and look around for the "Runtime Library" option. It'll have options like "Debug DLL", "Multithreaded Debug DLL", etc. Try different options until the linker errors go away (probably need to switch to the multithreaded dll options)
Topic archived. No new replies allowed.