While trying to compile a "hello world" program provided with the
CD-ROM at the back of O'Reilly "Palm Programming" for the Linux
environment, I've found several problems.
Most of these relate to setting up paths etc., and I haven't
yet found any info on this -- I'm just using standard
search and kludge techniques to deal with these.
But now I've come to a point where maybe these problems are
wider than the linux environment.
The palm header files in
/usr/palm/lib/gcc-lib/m68k-palmos-coff/2.7.2.2-kgpd-071097/include/PalmOS3/System
on my machine (as installed from redhat package manager rpm) seem to
have nested C-style comments, like
/* blah... /* nested comment */ more stuff.... */
The compiler very correctly rejects these, for instance in
SystemMgr.h
ErrorMgr.h
So I've started editing these header files.
The ErrorMgr.h file contains
Copyright(c) 1994, Palm Computing Inc
as copyright message. Does this mean that I have out-of-date
header files here?
The SytemMgr.h files contains
Copyright (c) 1994-1997, Palm Computing Inc
which is bit more recent.
I can only imagine that this problem is still present
because most people are suing a compiler that permits
non-standard C comment nesting.
K&R 2nd edition p.192 says "Comments do not nest,...".
My apologies for asking such an elementary question, but as
soon as I get past "hello, world", it looks like the
documentation I downloaded from 3com looks ample to work out
most things for myself. It's just the first step that's a bit tricky.
Regards,
Alan Kennington.