Re: Recompiling when header file changes
Re: Recompiling when header file changes
- Subject: Re: Recompiling when header file changes
- From: Jerry <email@hidden>
- Date: Thu, 5 Apr 2007 09:14:39 +0100
Yes, they're native targets.
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.
Jerry
On 5 Apr 2007, at 02:28, Scott Lehman wrote:
Are they native targets? I got bit by something like
this recently but upgrading to native targets solved
everything.
Scott
Message: 1
Date: Wed, 4 Apr 2007 19:30:29 +0100
From: Jerry <email@hidden>
Subject: Re: Recompiling when header file changes
To: XCode Users <email@hidden>
Message-ID:
<email@hidden>
Content-Type: text/plain; charset=US-ASCII;
delsp=yes; format=flowed
Yes, they are.
On 4 Apr 2007, at 19:05, Syd Polk wrote:
Are the .h files in the target itself?
On Apr 4, 2007, at 12:57 PM, Jerry wrote:
On 4 Apr 2007, at 17:30, Paul Walmsley wrote:
Target B depends on target A, contains bar.cpp
which includes foo.h
When you say 'depends on', does the target info
pane list target
A in the 'direct dependencies' window, in
addition to A appearing
in the 'link binary with libraries' section of
the target tree?
Yes.
Also is the inclusion of foo.h wrapped in any
macros that might
confuse the dependency analyser?
No. Just a straight #include
I need to do some work and try and reduce this to
a simple case.
This is a large project with 11 targets and over
2000 source
files.....
Jerry
_______________________________________________
Do not post admin requests to the list. They will
be ignored.
Xcode-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
Syd Polk
email@hidden
"Let the music be your light" - Dave Edwards,
KUHF-FM, 1982
______________________________________________________________________
______________
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find
flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40huxtable.com
This email sent to email@hidden
_______________________________________________
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