Click to See Complete Forum and Search --> : GCC and Palm


AlexPlank
10-20-2002, 04:51 PM
I cannot compile a program for palm.

UNDER ROOT:
[root@dhcppc1 alex]# m68k-palmos-gcc Goodbye.c -o Goodbye
/usr/m68k-palmos/lib/crt0.o: In function `start':
crt0.c:69: undefined reference to `PilotMain'
collect2: ld returned 1 exit status
[root@dhcppc1 alex]#



UNDER A USER
[alex@dhcppc1 alex]$ m68k-palmos-gcc Goodbye.c -o Goodbye
/usr/m68k-palmos/lib/crt0.o: In function `start':
crt0.c:69: undefined reference to `PilotMain'
collect2: ld returned 1 exit status
[alex@dhcppc1 alex]$


I know that there isnt a problem with the source code:'

[alex@dhcppc1 alex]$ gcc Goodbye.c -o Goodbye
[alex@dhcppc1 alex]$

It compiles correctly with gcc
this was just a test to see if the palm compiler was working. The only function in this is printf
This program prints text on the screen. That is all that it does.

bwkaz
10-20-2002, 07:43 PM
With normal gcc, the name of the entry function of the program will be main(). Apparently with m68k-palmos-gcc, the name of the corresponding function is PilotMain() instead of just main(). Change main to PilotMain, that should work.