I am trying to make a wrapper in Objective-C so I don't have to write c++ outside the library classes.
The Library main file is LLAHProcessor.h .cpp
My Wrapper is LLAHProcessorWrapper.h .mm
It compiles fine, but when I add LLAHProcessorWrapper
to other class, (Lets say an UIView) as a member variable I get hundreds of errors, like:
#include <map> : Map no such a file or directory
and in every c++ class/struct:
Expected specifier-qualifier list before ClassName
Is like compiler is not recognizing c++ code.
I wonder what am I missing here. Does it has to be something with the fact I added this to Xcode Target Properties: ?
Other Link Flags : -lstdc++ -lz
Or maybe I need to add new flags here?
Thanks in advance