开发者

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:

Xcode converting project from C++ to Objective-C++


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++.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜