Open giannishatzo opened 1 year ago
Hello Giannis,
You can wrap such libraries with the current version, by removing the extern "C"
from the headers passed to WrapIt. Once the code generated, you should use the original header files to compile it.
The direct support for extern "C"
may eventually be added. The libclang
library used to parse the c++ code does not seem to support this directive making the implementation more difficult that it should.
Philippe.
Hi Philippe
Thanks a lot, this sounds promising. I'll give it a try as soon as I find the time and I'll let you know.
Giannis
I'm trying to wrap a library which includes both C and C++ header files. Is there a way to make this configuration work with wrapit? C headers are embedded in an extern "C" {} structure, but when trying to run wrapit on it, the result is 0 enums, classes, etc.