VisualD and VS2012

Manu turkeyman at gmail.com
Tue Jan 21 17:56:44 PST 2014


On 22 January 2014 11:09, Manu <turkeyman at gmail.com> 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 at std@@YAXPEB_W0I at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140122/68c70ec1/attachment.html>


More information about the Digitalmars-d mailing list