Horde3D http://horde3d.org/forums/ |
|
Very Strange Linker Errors http://horde3d.org/forums/viewtopic.php?f=1&t=1892 |
Page 1 of 1 |
Author: | TheFloatingBrain [ 03.07.2013, 02:42 ] |
Post subject: | Very Strange Linker Errors |
Good day, I compiled Horde3D with Visual C++ 2012 and I am getting strange linker errors that I have been stuck on for a number of hours I am really unsure as to how to resolve them, there are two types, one is a set of errors similar to: Code: Error 10 error LNK2005: "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPBDH@Z) already defined in libcpmtd.lib(syserror.obj) (this also occurs with typeinfo.obj, stdthrow.obj, xthrow.obj, and memmove.obj) Which I can resolve with /FORCE:MULTIPLE but I do not think this is the best approach, but the one I am really stuck on is: Code: Error 1 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in egAnimatables.obj If it helps I am also getting a warning stating: Code: Warning 15 warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library Horde3DTest\Horde3DTest\LINK Horde3DTest Any help resolving these linker errors is highly appreciated! |
Author: | Irdis [ 03.07.2013, 09:15 ] |
Post subject: | Re: Very Strange Linker Errors |
Are you compiling Horde as dll or as static lib? If you are using horde as a static lib in application you should have the same Runtime Library setting for both your application and horde. See Project - <Your project name> Properties - C/C++ - Code Generation - Runtime Library (instruction is for VS 2010, I don't think that VS 2012 differs very much in this case). It should be set for your application and horde to either Multi-threaded DLL, or Multi-threaded. Multi-threaded Dll is probably the best choice. |
Page 1 of 1 | All times are UTC + 1 hour |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |