I am building a static library for an iOS 7 software which uses both C++ and Objective-C++ code.
Trying to put in Objective-C++ (.mm) in the same library as the C++ gives me the following errors in link time:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_XYZ", referenced from:
objc-class-ref in ViewController.o
"_OBJC_CLASS_$_Thisissomefunc", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Is this even possible or should I separate the obj-c++ from the c++ and use two static libraries?
Thanks