Xcode converting project from C++ to Objective-C++
how to convert a Xcode C++ project to an Xcode Objective-C++ project, because now it doesn't threat ".mm" files like Objective-C++ files, but as C++ files generating开发者_如何学Python lots of errors:) also cannot use the ObjC++ goodies
I think this is what you should do:
Check in the project configuration under Build that "Compile Sources as" is set to "According to file type.
Alternatively, to change what a file is compiled as: select it, "Get Info", change the file type to e.g. sourcecode.cpp.objcpp
for ObjC++.
精彩评论