How to use C++ static library in d

Walter Bright newshound1 at digitalmars.com
Sun May 10 10:27:01 PDT 2009


Hima wrote:
> Hello everyone. I'm wondering is there a way to use a C++ static library in D?
> 
> I only have the .h and .lib files of the library, but not .dll or .cpp


D 2.0 can interface directly with C++ free functions and single 
inheritance hierarchies. If you need to go further than that, the way is 
to create a C wrapper for the C++ code, then D can call the C wrapper.



More information about the Digitalmars-d mailing list