[Issue 11961] New: Can't select CRT to link against

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 21 18:05:13 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11961

           Summary: Can't select CRT to link against
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: turkeyman at gmail.com


--- Comment #0 from Manu <turkeyman at gmail.com> 2014-01-21 18:05:08 PST ---
Can an option be added to DMD to choose which CRT should be used for linking?

It seems DMD will always attempt to link to LIBCMT.LIB, but it's conventional
to link LIBCMTD.LIB in debug builds, which can cause problems linking against
C/C++ code built with MSC.
If DMD will choose LIBCMT.LIB by default, it should probably choose LIBCMTD.LIB
for debug builds.

There are also others, non-multi-threaded, and also the DLL variants, which
users may want to select.

I think a compiler option is required so people can properly match their C++
code.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list