[Issue 19726] Visual D does not link C standard library with D-only project

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 10 14:56:29 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19726

Rainer Schuetze <r.sagitario at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario at gmx.de

--- Comment #1 from Rainer Schuetze <r.sagitario at gmx.de> ---
The default is not to add any C++ to the project and that works for me. Dmd
adds the reference to the C runtime into the module that contains main, DllMain
or WinMain.

Are you using LDC instead? Or maybe your project doesn't include any of the
functions above? You can also disable any C runtime reference by choosing
"None" as the "C Runtime Library" in the D compiler options.

--


More information about the Digitalmars-d-bugs mailing list