• 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
Include Path Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Include Path Problem


  • Subject: Include Path Problem
  • From: Giovannini <email@hidden>
  • Date: Fri, 18 Mar 2005 09:41:40 -0600

Hello,

I have spent countless hours on this one. The most frustrating part is that the setup sometimes (rarely) works. Here is the glitch.

Third party library (C++ source and headers) has a file called "Signal.h". XCode confuses the project relative Signal.h with the system's signal.h. Other system headers end up including the local.

The project is organized as such...

The XCode project file is in the root of the third party project directories
All source and header files are in a "source" subdirectory
/Users/dave/Projects/Project_Root/source/*.h,cpp,inl


All source files use #include "source/file.h,inl"

In order for XCode to see any of the project headers, I added the complete path of the "Project_root" directory to the target's Include Header Path attribute. The man-pages then state that adding a " -" after the path specification will only use that path for #include "". It appears to be ignoring the flag.

To figure out what setting is causing the problem (there is a GMake file that works), I copied XCode's compilation command to the command line. The following parameter, when removed, compiles the file on the command without error.

-Wp,-header-mapfile,/Users/dave/Projects/Project_Root/source/build/ project.build/project.build/project.hmap

What is going on? How do I tell XCode that "source/Signal.h" is not <singnal.h>?

Dave

_______________________________________________
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:
    • Include paths, and case sensitivity
      • From: Markian Hlynka <email@hidden>
  • Prev by Date: static function var not destroyed in Dynamic Library unload
  • Next by Date: Re: How do I debug an API?
  • Previous by thread: Re: static function var not destroyed in Dynamic Library unload
  • Next by thread: Include paths, and case sensitivity
  • Index(es):
    • Date
    • Thread