XCode 5 compile library like CMATH

686 Views Asked by At

I have code contains of Objective-C and C++. I set compiler on "Objective-C++" in "Apple LLVM 5.0 Language - Compile sources as" and now when I want to build application, it tries to compile files like CMATH and CPP_TYPE_TRAILS.H. Do you have any ideas how to figure out this problem? Thank you for answers.

enter image description here

1

There are 1 best solutions below

6
On

You need to change your .m file to .mm have a look on this for more info Mixing Objective-C and C++