New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

XCode Include path problem


Post Reply New Thread Subscribe

 
Thread Tools
Jove
Guest
 
Posts: n/a

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 "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.

-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>?

Jove
QUOTE Thanks

Post Reply New Thread Subscribe


« Fink not behaving with zsh | PYTHON PROGRAMMERS!!! how do i compile/run linux-based python code on OS X »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
how can i set the path? Bo Eddy OS X - Development and Darwin 1 05-12-2004 11:45 AM
G5 Video problem WilliS Apple Desktops 3 05-05-2004 10:16 AM
Xcode doesn't run application correctly dr_springfield OS X - Development and Darwin 5 04-07-2004 12:22 AM
xcode c++ problem WilliS OS X - Development and Darwin 1 04-04-2004 05:50 PM
weird XCode problem kaiden OS X - Development and Darwin 1 12-10-2003 11:59 AM

All times are GMT -4. The time now is 11:11 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?