> From: Paul Gilbert [mailto:[EMAIL PROTECTED]]
> Frankly, pre-compiled headers in CodeWarrior have given me
> nothing but trouble.
The performance benefits of precompiled headers become obvious when your
project size reaches 10, 20, 40 or more source files.
> The best thing to do is just turn it off.
> Create a text file called build.h in your Src directory:
>
> #define PILOT_PRECOMPILED_HEADERS_OFF
>
> Then in your Project Settings, go to the "C++ Language" page,
> and enter "build.h" under the prefix file line.
Actually that's almost the recipe for making a precompiled header that works
trouble-free. Create a .pch file containing that #define following by
#include <PalmOS.h> and any other #include's and global definitions you
want. Then set the project prefix file name to be the precompiled version
of the file (RTFM first). That's all there is to it.
-slj-
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/