Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recompiling when header file changes




On Apr 5, 2007, at 1:14 AM, Jerry wrote:

I've been investigating this a bit more and I now think the multiple targets thing is a red herring. Making my static library target the active target. I modified a header file, foo.h (not its real name), and built the target. Xcode built foo.cpp, but missed 38 other files which directly #include foo.h. I think I might be homing on on something here because foo.cpp is in the same folder as foo.h, but the other files aren't. foo.cpp has #include "foo.h", but the others have #include "Foo/foo.h" and the header file search path is set up to include the folder containing "Foo". The search paths are inherited from the project settings - not per-target settings.


Before anyone asks: there are no spaces or weird characters in any filenames or the path to the project.


This is very helpful, and worth filing a bug report on at this point.  One more stab in the dark: is the project on a case-insensitive file system (HFS) and the enclosing folder's actual name is "foo" rather than "Foo"?  

In such a case the case insensitivity of the file system would allow gcc to find the included header, but the case sensitivity of the dependency mechanism would fail.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >Re: Recompiling when header file changes (From: Scott Lehman <email@hidden>)
 >Re: Recompiling when header file changes (From: Jerry <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.