• 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: search paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: search paths


  • Subject: Re: search paths
  • From: Steve Mills <email@hidden>
  • Date: Thu, 31 Mar 2005 13:36:32 -0600

On Mar 30, 2005, at 12:27, Andreas Grosam wrote:

Unless you compile with option -nostdinc++, the compiler (or better preprocessor) searches in standard system headers which are set implicitly. Standard system search paths are hard wired into the compiler and cannot be changed (but disabled via -nostdinc).

Thus, you do not need to set header search paths explicitly for standard headers.

The command-shift-d thingy just searches in customizable predefined search paths, which do not necessarily match any search paths relevant for your build. These paths are orthogonal to the search paths set in the build settings.
So a header which opens nicely in an editor via command-shift-d , might not be the header you expect and which will be actually inlcuded by the compiler.
IMO, this is at least confusing.


What you did experience (probably), is that the indexer will not parse C++ headers. That means, C++ headers will not appear in the headers-popup, nor will the symbols listed from them. The indexer will also refuse to parse headers having uncommon file extensions.
IMHO, this is one of the various missing features. Furthermore, the indexer gets pretty confused or just lacks to produce detailed information when parsing C++ source code, like namespace or qualifiers as well as templates, local classes.

I just installed 8a425 and <string> still can't be found. This really sucks. <string> is included from one of my .h files. That .h file is included from my .pch. It's trying to procompile the .pch when it gets this error. How do I fix this? It should be a no-brainer. Obviously, something is hosed or this wouldn't be an issue.


Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/

_______________________________________________
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


  • Follow-Ups:
    • Re: search paths
      • From: Justin Walker <email@hidden>
References: 
 >search paths (From: Steve Mills <email@hidden>)
 >Re: search paths (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Linking to .so file
  • Next by Date: Re: Linking to .so file
  • Previous by thread: Re: search paths
  • Next by thread: Re: search paths
  • Index(es):
    • Date
    • Thread