• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: help! Xcode can't compile c++ projects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >help! Xcode can't compile c++ projects. (From: 汪 燕军 <email@hidden>)

  • Prev by Date: Re: help! Xcode can't compile c++ projects.
  • Next by Date: Breakpoint when Core Data property if no custom setter
  • Previous by thread: Re: help! Xcode can't compile c++ projects.
  • Next by thread: Breakpoint when Core Data property if no custom setter
  • Index(es):
    • Date
    • Thread