Re: Changing the prefix file
Re: Changing the prefix file
- Subject: Re: Changing the prefix file
- From: Chris Espinosa <email@hidden>
- Date: Mon, 23 May 2005 08:16:27 -0700
On May 23, 2005, at 8:00 AM, Theodore H. Smith wrote: Is it a good idea to add imported/included files, to the prefix file <MyProjectName_Prefix.pch>, if you tend to import them into most of your source files?
I'm just thinking of adding basic stuff right now, stdio.h, string, string.h, starg.h etc etc.
Depending on what frameworks you use, they may already be included, by dint of being needed for <Carbon/Carbon.h> or <Cocoa/Cocoa.h> or whatever high-level framework you're using. If so, there's no loss or gain to adding them; the compiler notices that they've been precompiled and doesn't attempt to re-read and re-compile their contents.
You can always just open your prefix file and choose Preprocess...and use Find to see if your common files are there.
What is useful is to include your project's common header files in your prefix file. That way they get precompiled, too, and do not have to be compiled in full for each source file that includes them.
Chris |
_______________________________________________
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