Linking libraries that are written in C++ with a C interface
Gerry via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 8 18:47:56 PDT 2014
Hello All,
I'm trying to link a library that is written in C++ that provides
a C interface. Unfortunately the lib is proprietary, so I can't
include the code. I'm getting undefined references to new and
delete operators etc. This links fine with gcc. I'm using the
following command line to build.
dmd test.d file1.d file2.d -L/path/to/lib/lib.a
Is this the write way to link a static library? I was actually
using ldc, but couldn't get that to work at all.
Thanks,
-G
More information about the Digitalmars-d
mailing list