<div dir="ltr">Who here uses VisualD under VS2012?<div><br></div><div>I just installed 2012 and tried it out, I'm having some strange problems that I don't seem to have under VS2010.</div><div>So, the trouble scenario is when I try and link a C++ lib against a VisualD project.</div>
<div>I set the C++ lib project as a dependency of the D executable project in the solution dependencies, and then it tries to link, but there are problems:</div><div><br></div><div><div><font face="courier new, monospace">1>libcpmtd.lib(xthrow.obj) : error LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700' in Fuji_Debug.lib(MFPrimitive_Plug.obj)</font></div>
<div><font face="courier new, monospace">1> Creating library .\FeedBack_Debug.lib and object .\FeedBack_Debug.exp</font></div><div><span style="font-family:'courier new',monospace">1>Fuji_Debug.lib(pngerror.obj) : error LNK2001: unresolved external symbol __report_rangecheckfailure</span><br>
</div><div><span style="font-family:'courier new',monospace">1>Fuji_Debug.lib(ReadAssImp.obj) : error LNK2019: unresolved external symbol "void __cdecl std::_Xbad_alloc(void)" (?_Xbad_alloc@std@@YAXXZ) referenced in function "char * __cdecl std::_Allocate<char>(unsigned __int64,char *)" (??$_Allocate@D@std@@YAPEAD_KPEAD@Z)</span><br>
</div><div><font face="courier new, monospace">1>Fuji_Debug.lib(ReadAssImp.obj) : error LNK2019: unresolved external symbol "char const * __cdecl std::_Syserror_map(int)" (?_Syserror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::error_condition __cdecl std::_System_error_category::default_error_condition(int)const " (?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z)</font></div>
<div><font face="courier new, monospace">1>Fuji_Debug.lib(ReadAssImp.obj) : error LNK2019: unresolved external symbol "char const * __cdecl std::_Winerror_map(int)" (?_Winerror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@H@Z)</font></div>
<div><font face="courier new, monospace">1>libcpmtd.lib(stdthrow.obj) : error LNK2019: unresolved external symbol _CrtDbgReportW referenced in function "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPEB_W0I@Z)</font></div>
<div><font face="courier new, monospace">1>.\FeedBack_Debug.exe : fatal error LNK1120: 5 unresolved externals</font></div></div><div><br></div><div>Linking the exact same .lib file against a C++ exe project, there is no problem, so this only occurs when linking to a VisualD built exe.</div>
<div>I suspect that VisualD is either executing the VS2010 linker, even though I'm running VS2012, or maybe it's trying to link the VS2010 libs instead of the 2012 libs?</div><div><br></div><div>I suspect it's yet another one of those 'paths are all confused' problems, where the issue lies somewhere between sc.ini and VisualD's overrides... but maybe not?</div>
<div><br></div><div>Anyone with experience on this?</div><div>Rainer?</div></div>