Thread: XCode Include path problem
03-18-2005, 09:41 AM #1JoveGuestXCode Include path problem
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
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 "source" 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.
What is going on? How do I tell XCode that "source/Signal.h" is not <singnal.h>?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By jordan0420 in forum OS X - Development and DarwinReplies: 0Last Post: 07-09-2011, 04:15 PM
By skiabox in forum OS X - Apps and GamesReplies: 1Last Post: 10-23-2010, 05:12 PM
By charvey1 in forum OS X - Operating SystemReplies: 1Last Post: 10-11-2010, 05:25 AM
By eddyq in forum OS X - Operating SystemReplies: 0Last Post: 08-11-2009, 09:19 PM
By Romu in forum OS X - Operating SystemReplies: 1Last Post: 03-04-2008, 06:35 AM