[Issue 18641] VisualD - First 5 minutes - Improve experience adding .d files to existing C++ projects

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 24 07:00:36 UTC 2018


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

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 runtime library link comments are usually added to the object file that
contains main(), but this falls short in your case of building a static
library. Adding it elsewhere into the library doesn't help because there is no
guarantee that it will be dragged in by the linker.

So far, I've been trying not to interfere with projects that don't use D at
all. Adding D files to a C++ project already modifies linker search paths, but
doesn't add the runtime libraries. I guess that would be better.

With static libraries this gets a bit more complicated as these settings must
be propagated to the actual link step in a different project.

--


More information about the Digitalmars-d-bugs mailing list