views:

348

answers:

2

I have recently updated Xcode to version Version 3.2.2 (Pre-release). It is working 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.

+1  A: 

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.

KennyTM
A: 

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

Dmytro