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


--- Comment #0 from Manu <turkeyman 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: -------
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


--- Comment #1 from yebblies <yebblies gmail.com> 2014-01-22 14:50:29 EST ---
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