On Monday, May 29, 2006, at 06:33AM, Michael D. Crawford <email@hidden> wrote:
>I want to enable faster compiles in a Carbon project without the use of
>precompiled headers. That means I can't just #include <Carbon/Carbon.h>
>everywhere; I must include only the bare minimum of headers that I need.
Are you using gcc 3.3? I would recommend moving to gcc 3.3, and then using Xcode's builtin PCH mechanism. It is likely to be just as fast as what you are trying to do, as the reading of Carbon/Carbon.h will only be done when the PCH is created. You can then avoid doing what you are doing.
What you are doing is likely to break if you start compiling for Mac OS X 10.4 or later, as Apple makes no guarantee that subframeworks will always live in the same place under a main framework. You should always include Carbon/Carbon.h. PCH is meant to make compilation doing that as fast as can be done with the compilers in question, provided you are using gcc 3.3 or later.
Syd Polk
email@hidden
"Let the music be your light" - Dave Edwards, KUHF-FM, 1982
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden