> From: Paul A. Dugas [mailto:[EMAIL PROTECTED]]
> Yes, I know how to disable them.  I'm wondering how to make
> them work though.  While I understand what your suggestion
> would do, making it to another novice would not solve the
> problem.  I have a project with upwards of 40 separate
> files.  Without precompiled headers, the compiler runs
> through 200k likes for each one!
> Thanks for the non-help.

You misunderstood.  The PILOT_PRECOMPILED_HEADERS_OFF just makes it ignore
the precompiled headers that come with CodeWarrior.  Then by having your own
.pch file in the project, it builds and uses a precompiled header within
your project, using exactly the #include's and #define's you put in it.

I have a project with 30 .cpp files.  A full rebuild (including compiling
the .pch itself) on a 550MHz P-III takes 6 seconds.

My prefix file (for my Debug target) is named Debug.pch and looks like this:

        #define ERROR_CHECK_LEVEL ERROR_CHECK_FULL
        #define PILOT_PRECOMIPLED_HEADERS_OFF
        #include <PalmOS.h>
        // and other global #include headers
        // and other global #define's for the project

Then in the C/C++ Language panel, the Prefix File setting is "Debug".
(There is a corresponding setup for the Release target, using Release.pch
with ERROR_CHECK_LEVEL == ERROR_CHECK_NONE.)

Make sure to include the .pch file as a "source" file in the CodeWarrior
project window, even though you don't normally put regular .h header files
there.  Having the .pch file as a source file is what tells CW to build the
precompiled header.

This has been working for me for a long time.  Novice?!  :-)

-slj-


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to