开发者

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

开发者 https://www.devze.com 2023-03-18 12:24 出处:网络
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 erro

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

精彩评论

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

关注公众号