Linking D code into existing C programs
Atila Neves via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 27 09:44:25 PDT 2016
On Monday, 26 September 2016 at 23:32:05 UTC, Walter Bright wrote:
> Linking C libraries and object code into D programs has always
> worked easily in D. The other way around, not so well.
>
> [...]
I think it should work as well as it does in C++, if possible.
The equivalent to the example above links fine for foo.cpp. It's
only if you use the standard library or throw exceptions that you
need to link with g++ instead.
Atila
More information about the Digitalmars-d
mailing list