On 22 January 2014 11:09, Manu <[email protected]> wrote: > ...yes, seems to be the case. I amended my sc.ini file to point to the > VS2012 stuff and it works much better. Only one link error: > > 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) > > Strange.. I wonder where that's supposed to come from :/ >
This final link error appears to be a CRT mismatch. The C++ code is built against the debug CRT, but I think DMD/VisualD (because VD handles the link step manually?) is trying to link the non-debug lib. How can I control which CRT DMD/VisualD will link against? I can't see any options for DMD, and VisualD doesn't seem to expose any option either. Passing /MTd to the linker doesn't have any effect, it's an MSC compiler option, not a linker option.
