This is fixed in the Palm OS 3.5 SDK, I believe.
Rgds,
Jun-Kiat Lam
Metrowerks Technical Support
----- Original Message -----
From: "Greg Winton" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, June 14, 2000 8:24 AM
Subject: Re: illegal use of precompiled headers
> This usually happens when you try to include pilot.h more than once - it
> doesn't check if its already been included. What I've done is wrap
pilot.h
> in my own header, MyPilot.h:
>
> #ifndef MYPILOT_H // prevent multiple includes
> #define MYPILOT_H
>
> #include <pilot.h>
>
> #endif // #ifndef MYPILOT_H
>
> Then I make sure never to include pilot.h correctly. I'm not sure if you
> need to do the same thing for OS 3.5 and PalmOS.h
>
> Hope this helps,
> Greg
>
>
> At 10:01 PM 6/13/00 -0400, you wrote:
> >Hello,
> >
> >I'm using CodeWarrior 6.0 on Win98.
> >I've been using C++.
> >
> >All of a sudden I am getting the error "illegal use of precompiled
header"
> >when I try to compile. There error is generated within three different
.h
> >files, all of which are just a bunch of function prototypes.
> >
> >My app is about 16 Kb which is spread out over 8 c files and 10 h files
(I'm
> >reasonably sure that I've set everything up properly - the error came out
of
> >nowhere). If I alter some of the structure (ie - get rid of one of those
> >simple header files), I just get the precompiled header errors in
different
> >places.
> >
> >Any takers?
> >
> >Thanks in advance,
> >
> >Brian.
> >
> >
> >
> >
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/
> >
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/