Aaron Ardiri <[EMAIL PROTECTED]> wrote:
> m68k-palmos-gcc -c -O2 -Wall -palmos3.5 palm.c
> In file included from /PalmDev/sdk-3.5/include/PalmOS.h:24,
> from palm.h:16,
> from palm.c:15:
> /PalmDev/sdk-3.5/include/PalmTypes.h:60: syntax error before `typedef'
I think you'll have to show us just a little bit more code than that Aaron!
I was going to ask if you were using the `-ansi' flag (our headers will
give it indigestion), but I see you're not.
A useful technique for tracking this sort of mystery down is:
$ m68k-palmos-gcc -E -P -palmos3.5 palm.c > palmprep.c
$ m68k-palmos-gcc -c -O2 -Wall palmprep.c
palmprep.c:879: syntax error before `typedef'
You can now look at the neighbourhood of line 879 (or whatever) in the
preprocessor output and possibly get a better idea of what the compiler
is seeing.
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html