开发者

C++ and Objective C in Xcode project

I have recently updated Xcode to version Version 3.2.2 (Pre-release). It is work开发者_如何学运维ing fine with old Objective-C projects but I experience some problems with projects which have mix of Objective-C/Objective-C++ code. During the compilation I am getting the following error:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/bits/functexcept.h:41:28: error: bits/c++config.h: No such file or directory

I have checked the path a compiler complains about and found that file functexcept.h is located in the following path:

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/armv7-apple-darwin9/bits/

My question is where I should change that path to correct one in Xcode? Thanks in advance.


Try to make a symlink pointing arm-apple-darwin10 to arm-apple-darwin9:

cd /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/usr/include/c++/4.2.1/
sudo ln -s arm-apple-darwin9 arm-apple-darwin10

Report a bug to Apple.


After installation of the iPhone SDK with XCode (Version 3.2.1) problem has gone.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜