May 10, 2009 How to use C++ static library in d | ||||
|---|---|---|---|---|
| ||||
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 Thank you in advance :) | ||||
May 10, 2009 Re: How to use C++ static library in d | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Hima | 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.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply