Re: help! Xcode can't compile c++ projects.
Re: help! Xcode can't compile c++ projects.
- Subject: Re: help! Xcode can't compile c++ projects.
- From: Andreas Grosam <email@hidden>
- Date: Sat, 07 Apr 2012 17:37:16 +0200
On Apr 7, 2012, at 1:52 PM, 汪 燕军 wrote:
> In file included from /Users/wangyj1203/workspace/project_x/svn/src/c++/src/latte/../../../../../../../../../usr/include/c++/4.2.1/iostream:44:
>
The preprocessor shouldn't find system header files here, which is actually at
/usr/include/c++/...
Instead, it should use the path specified in option sysroot:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/inlcude/c++/...
Form the transcript, I can't figure why this might happen.
Include the flag "-v" in the build options, then you get the header search paths in the transcript.
Andreas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden