Missing hxcpp.h in cpp compilation

Why can I not simply put the outputted source code directly into Xcode though? That way I won’t have to configure architectures of the static lib in hxml…

I mean you could for sure, you’d just need to configure Xcode with the right flags to compile it, which you can get from adding -D HXCPP_VERBOSE and watching it run clang

However, that itself is a daunting challenge so it’s simplest to let hxcpp compile it into a binary of the form you want and then consume that

I was not able to configure Xcode. It keep complaining about #include <typeinfo> not found. When commented it out it complains instead about #include <cstddef> not found. Both in the hxcpp.h file.

Since those are does not exist on disk (except in a pytorch distribution package I have) and hxcpp itself don’t have them I have no clue of how haxe can build it.

Aye, those will be in some system toolchain somewhere

Can be done, but ye complexity of that is much higher than letting hxcpp compile it (it’s just calling Xcode’s clang compiler behind the scenes anyway