www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11961] New: Can't select CRT to link against

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: turkeyman gmail.com



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: -------
Jan 21 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11961


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com



If you pass LIBCMTD.LIB on the command line it _should_ override the default.

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