Sven E. Aas writes:
> I am
> using the GNU C/C++ compiler and the Palm SDK 3.0, on a Windows NT machine.
Actually the line numbers you quote indicate 2.0 SDK headers, and indeed
this problem has long since been fixed in the 3.0 headers.
> e:\\palm\\GnuPP\\lib\\gcc-lib\\m68k-palmos-coff/2.7.2.2-kgpd-071097/include/
> PalmOS/Common.h:252: parse error before `false'
So look at line 252 then...
> 252: enum {false, true};
Since you're using C++ you should know that `false' and `true' are keywords
in C++. You can fix this by wrapping the usual "#ifndef __cplusplus" pair
around this line.
> Oh, and this is weird, Common.h
> is not in the directory that GPP says it is.
You can see exactly what header files are being included with the `-H'
option. (However, in this case, it'll just tell you the same thing as
the error message :-).)
> E:\palm\GnuPP\m68k-palmos-coff\include\PalmOS
> - This is the closest to the named path
> I don't know why GCC is reporting an incorrect path (in fact, a nonexistant
> path!), but it is clearly parsing Common.h.
On your system, e:\\palm\\GnuPP\\lib\\gcc-lib\\m68k-palmos-coff/2.7.2.2-
kgpd-071097/include/PalmOS is a symbolic link to the directory you expect.
(What? You don't have symbolic links on Windows? With cygwin you do :-)
-- take a look at that file.)
> But how do I tell GCC to use the other set of headers? Is there a
> command-line switch for this?
RTFM! :-)
(If you type "bool false enum" and "forum: pilot.programmer.gcc" into
DejaNews you will find year-old articles solving this problem.)
John