I'm using C++ objects in an Obj-C code. To do this, I've wrapped the C++ objects in ObjC objects, which in turn use opaque pointers to access the C++ classes. That stuff is working.
the Problem: The C++ objects (e.g. CPPObj.cc) use methods from additional c++ header files (e.g. ToolsCPP.h)---when I try to compile the ObjC code (e.g. Obj.mm), it complains that those methods are undefined.
Even if I include ToolsCPP.h directly in the Obj.mm file, it still complains.
Ugly Solution: Include all of the necessary methods from ToolsCPP.h in CPPObj.cc, so that the C++ objects are fully self-contained. This would be a huge pain.
Is there any better / easier / proper way to do this?
Thanks!