> When downloading my application (.prc file) generated with the GNU
> compiler with HotSync I get
> the following message on the Pilot's screen after the download is complete
> and the HotSync
> function is cleaning up:
>
> Fatal Error: palmos_GLib.c, Line:29, C Library is not installed
>>>
I haven't played with the gnu tools a whole lot, however, in general you
can't use standard c library functions when programming for the Palm--they
aren't supported by the OS.
<<<
> After this I have to perform a hard reset to get the Palm working again.
> It seems that the message is caused
> by calling libc functions from my program (which you could expect giving
> the message) but strangly the error
> occurs when downloading the program, not while running it.
>>>
Yes...this makes sense. After hotsync is over, the PalmOS sends a message
to the programs letting them know they've been installed (or something like
that). It does this through a launch code. Having a corrupt application
(or one that tries to bring up a UI / access globals when called with such
a launch code) will cause the device to crash after hotsync (and upon all
future resets). In order to actually delete the appliation, you can
perform a "safe" reset by holding the up arrow button down while restting.
..check Palm's documentation about launch codes for details. There is
definitely documentation about this.
<<<
> In trying to solve the problem I have staticaly linked the libc library
> with my application aswell as downloading
> the libc.prc file before downloading my own application. In both cases I
> didn't get the message anymore but
> the Palm just hangs instead with the "cleaning up" message still on the
> screen. Again only a hard reset will
> get the Pilot running again but also removes my application from it.
>>>
See above. As far as the static linking, I don't think this is suggested
(it bloats your application), but it may well work (haven't tried it).