Re: Recompiling when header file changes
Re: Recompiling when header file changes
- Subject: Re: Recompiling when header file changes
- From: Jerry <email@hidden>
- Date: Wed, 4 Apr 2007 17:15:14 +0100
On 4 Apr 2007, at 15:56, Shawn Erickson wrote:
On Apr 4, 2007, at 3:34 AM, Jerry wrote:
When I change a header file in my project, Xcode doesn't compile
the files which include that header. I end up, many times each
day, searching for all includes of the header and manually
recompiling the affected files. In bad cases I have to do a clean
build, which wastes over an hour. Does anyone have any ideas of
how I can move my build system into the twentieth century?
Xcode should handle that for you automatically. So you will need to
better describe how your project is configured.
How did you create the project? (which template did you use)
What modification did you make to any of the header related settings?
etc...
The project is a Carbon C++ Application project with several
application targets and a Static Library target which contains common
code used by all the app targets. If I change a header file used in
the static library, Xcode doesn't compile all the C++ files which
#include that header, even directly. The same goes for .pch files
which include the header. When I change a header file, I have to
check whether it's used in the precompiled headers, then do a clean
build if it is. Otherwise I have to try and find the affected files
which is very tedious and error-prone.
The only obvious change to header settings is that we add a
USE_HEADERMAP entry, set to false. This is necessary because the
source contains some files with the same name (in different folders)
and without it the wrong header files get included when compiling. We
can't easily change the file names because the names are required by
another operating system beginning with "W".
Jerry
_______________________________________________
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