> Oh, I've seen it.
> It seems like this is C++ related because it only showed up for me when I
> had some C++ classes in my project. When I removed 'em and only had C code
> it compiled and linked w/o probs.
> >
> >
> > Error : illegal use of precompiled header
> > Pilot.h line 65 #include "Pilot.h++.mch"
This is not really a C/C++ issue, but an issue with how CodeWarrior manages
precompiled headers. For those who don't know what a precompiled header
is -- warning: non-technical explanation follows -- it is a method that
allows the compiler to save a bunch of time by assuming that the header
files haven't changed and compiling those once ahead of time. (Hence the
term, "precompiled".)
The problem is that CodeWarrior doesn't like it when you try to mix
precompiled headers, and if you #include "Pilot.h" more than once, it
doesn't know it's the same set of headers. (Again, pretty non-technical
here, but it should get the point across.)
The basic answer to this make sure you #include "pilot.h" only once. How?
Here's one basic method. Create a file named "mypilot.h" which contains the
following:
#ifndef __PILOT_H__
#include <Pilot.h>
#endif
(I think that's the correct symbol.) Then in your source, #include
"mypilot.h" and you should be okay.
On a side note, this question is asked so so so so often. Is there a FAQ?
Is this in it? And if there is a FAQ, can a URL be added to the
mailing-list signature so we have a constant reminder of where it is?
---- --- -- -
Matthew D Moss
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html