HeaderImporter C++ <string> include

Hi,

I’m trying to use FXGen to generate an fx for third party library. One of the header files includes <string> I’ve tried various combinations but I cannot get HeaderImporter via FXGen to parse the file.

Under the Mac OSX 10.10 sdk the header is in the usr include folder “c++/4.2.1” and the ++ in the path seems to cause issue with HeaderImporter.

Any tips on importing a project using the std C++ headers would be appreciated.

Cheers,
Matt

Header Importer does not currently support C++ (supporting it would be close to impossible with all the quircks of c++ like multiple inheritance, the ever changing abi, templates). Does this library you are trying to import only support c++ or does it also have a c or objc header?

It only had C++ headers, but not to worry I was only considering the library so it’s not vital.

Is it just a case of HeaderImporter not supporting C++ or could I manually create the FX file header imports for any given C++ library?

Thanks!

The issue isn’t that you can’t use anything written in c++, the issue is that it doesn’t support c++ headers. For example some libraries are c++ but also have c specific headers, those do work and can be imported.