Hi Richard,
If by reliable, you mean that the IDE detects when the precompiled header
needs to be rebuilt, you can make sure of this by adding the precompiled
header file (.pch) to your project. It will _always_ be the first file to be
compiled, so if any changes are made, it will be rebuilt.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: Richard Hartman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 08, 1999 12:35 PM
Subject: RE: #defines in CW IDE targets
>
> > -----Original Message-----
> > From: Scott Johnson [mailto:[EMAIL PROTECTED]]
> >
> > "Meyer, Will" wrote:
> > > Is there no way to just add the definitions themselves to the
> > > list of standard ones the compiler applies without involving the
> > > precomiled headers, as you can in VC++? I will go the pch route,
> > > just seems a little overkill ;-)
> >
> > I'd argue that precompiled headers in VC++ _are_ overkill because they
> > are difficult to set up and use. (At least when I last used VC++, the
> > PCH feature required funny names and weird pragmas.) CodeWarrior
> > precompiled headers are much easier, IMHO.
> >
>
> Actually it's darned difficult to shut the darned
> things -off- in VC++. Even if you change the setting
> to "don't use", it -will- still be used if one is
> left on the disk. In addition, you set it to not
> use or generate them at the project level and you
> think you're ok, but it ends up that the settings
> on the file stdafx.cpp will still create one unless
> you go to that file's settings and turn it off there!
>
> In general, precompiled header files have been the
> cause of a number of problems in my experience --
> primarily because the IDE doesn't always detect when
> they need to be rebuilt. Bear in mind that I am
> still talking about the MSDev IDE ... but that
> experience has soured me on the concept pretty
> thoroughly, and I prefer to turn 'em off in CW too.
>
> -Are- precompiled header files in CW reliable?
>
> --
> -Richard M. Hartman
> [EMAIL PROTECTED]
>
> 186,000 mi./sec ... not just a good idea, it's the LAW!
>