Hi all, I've found the solution posted at thread: http://www.mail-archive.com/palm-dev-forum@3com.com/msg13273.html
It looks that this problem was fixed after version 0.5.1b3, but not for solaris. After I fixed the file PalmTypes.h at line 204 (I'm working with SDK 5), it compiled without a glitch. Sinisa. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Aaron Ardiri Sent: Wednesday, 10 November, 2004 14:28 To: Palm Developer Forum Subject: Re: can't compile simple example on solaris using prc-tools > m68k-palmos-gcc -Wall -palmos5 -O2 -c -o armlet.o armlet.c this one compiles your c -> o > m68k-palmos-gcc armlet.o -o armlet > armlet.o(.text+0x66):armlet.c: undefined reference to `DmGetResource' > armlet.o(.text+0x70):armlet.c: undefined reference to `MemHandleLock' > armlet.o(.text+0x9c):armlet.c: undefined reference to `PceNativeCall' > armlet.o(.text+0xc6):armlet.c: undefined reference to `PceNativeCall' > armlet.o(.text+0xda):armlet.c: undefined reference to `StrCompare' > armlet.o(.text+0x102):armlet.c: undefined reference to `MemChunkFree' > armlet.o(.text+0x116):armlet.c: undefined reference to `MemHandleUnlock' > armlet.o(.text+0x12c):armlet.c: undefined reference to `EvtGetEvent' > armlet.o(.text+0x132):armlet.c: undefined reference to `SysHandleEvent' > collect2: ld returned 1 exit status this one is linking, however, if you look at the header files - it shouldn't be trying to link, mainly because the function looks like this (in the headers) Boolean SysHandleEvent(EventPtr eventP) SYS_TRAP(sysTrapSysHandleEvent); and, SYS_TRAP is defined as: #define SYS_TRAP(trapNum) _SYSTEM_API(_CALL)(_SYSTEM_TABLE, trapNum) #define _SYSTEM_API(kind) _OS##kind #define _OS_CALL(table, vector) \ __attribute__ ((__callseq__ ( \ "trap #" _Str(table) "; dc.w " _Str(vector)))) which, is where the __callseq__ comes in. :) your warnings are in turn causing issues with the function definition - causing an error with the linking process.. it should inline: #trap 15 dc.w xxxxxx into the source code :) preventing the need to actually do any linking. --- Aaron Ardiri (Skype:: callto://ardiri) PalmOS Certified Developer [EMAIL PROTECTED] http://www.mobilewizardry.com/members/aaron_ardiri.php -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/