-----Original Message-----
From: John Marshall [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 19, 1999 12:48 AM
To: palmdev
Subject: Re: Newbie problems with gcc and Palm
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!
<g> Sorry. I didn't mean that noone had answered my question on the
discussion group. I just meant that activity has been low since I've been
monitoring it and I didn't hold much hope.
>> 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.
I'll try that tonight.
>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.
This is probably the best bet, but I tried commenting things out and moving
code around, and, of course, visually inspecting the code. I'm using Win NT
and the Borland IDE to edit my code (simply because that's what I'm familiar
with). I started with a sample shell application and added an include :
#include <SerialMgr.h>.
Tell, you what. I'll proceed with your suggestions and, if I can't resolve
the problem, can I email you the file and you can compile it for grins ?
TIA
Eric