Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 11:21

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 03.07.2013, 02:42 
Offline

Joined: 16.06.2013, 05:25
Posts: 4
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!


Top
 Profile  
Reply with quote  
PostPosted: 03.07.2013, 09:15 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 36 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group