Eric Oliver writes:
> I posted this to the gcc newsgroup but there doesn't seem to be a whole lot
> of activity.

Good grief man, you only gave it two hours!

>  m68k-palmos-coff-gcc -O2 -g     -c PalmCaddy.c -o PalmCaddy.o
>  PalmCaddy.c: In function `zpcSendData':
>  PalmCaddy.c:426: `FUNCTION' undeclared (first use this function)
[...]
>  PalmCaddy.c:426: parse error before `:'

If `FUNCTION' doesn't appear in your file, this is indeed mysterious.
(But you really haven't given us much to go on.)  You could use
`m68k-palmos-coff-gcc -O2 -E PalmCaddy.c' to get the preprocessor
output and see where `FUNCTION' is coming from.

It sounds like some stupid punctuation problem.  (Is there a struct
definition without a `;' on the end above there somewhere?)  But the
snippet you've shown isn't enough to detect the problem: eg, your
code compiles fine for me.

    John

Reply via email to