-----Original Message----- From: Shilpi [mailto:[EMAIL PROTECTED] Sent: Friday, August 06, 2004 6:57 PM To: Ritu Chawla Subject: Palm Error: undefined reference to `_GccLoadCodeAndRelocateData'
I am getting the following error when trying to compile my palm code using prc-tools. ERROR: ******************** DtsUtil-sections.o(.text+0x2):DtsUtil-sections.s: undefined reference to `_GccLoadCodeAndRelocateData' DtsUtil-sections.o(ehook+0x0):DtsUtil-sections.s: undefined reference to `_GccReleaseCode' collect2: ld returned 1 exit status My gcc version is: ******************** $ m68k-palmos-gcc -v Reading specs from /usr/lib/gcc-lib/m68k-palmos/2.95.3-kgpd/specs Reading specs from /usr/lib/gcc-lib/m68k-palmos/specs gcc version 2.95.3-kgpd 20010315 (release) My Makefile is: ******************** # name of program PROGRAM = DtsUtil DESCRIPTOR= UTIL DEF = $(PROGRAM).def # C sources derived to: OBJS = DTSCommon.o DTSLogger.o DTSMemory.o DtsUtilImpl.o $(PROGRAM)-sections.o #The names of: the resource file, the library (which is built by make) and the output PROGLIB = $(PROGRAM).lib PRC=$(PROGRAM).prc # compilers and linker CC=m68k-palmos-gcc AS = m68k-palmos-as MAKELIB = $(CC) -nostartfiles -shared -g -O1 -Wmissing-declarations -Wall -L/m68k-palmos/lib -Xlinker -Map -Xlinker $(PROGRAM).map -o CFLAGS = -Wall -O2 -palmos4 LINK = build-prc -o all: clean $(PRC) # to make the application xxx.prc $(PRC): $(PROGLIB) $(DEF) $(LINK) $(PRC) $(DEF) $(PROGLIB) # make clean # to librarize those source(s) $(PROGLIB): $(OBJS) $(MAKELIB) $(@) $(OBJS) DTSCommon.o: DTSCommon.c DTSLogger.o: DTSLogger.c DTSLogger.h DTSMemory.o: DTSMemory.c DTSMemory.h DtsUtilImpl.o: DtsUtilImpl.c $(PROGRAM)-sections.o: $(PROGRAM)-sections.s $(PROGRAM)-sections.s: $(DEF) m68k-palmos-multigen $(DEF) # clean-up functions clean: rm -f *.[oa] *~ $(PROGLIB) Regards, Shilpi Gupta www.momentum-tech.com Your Offshore Partner of Choice Phone : +91.120.258.9337 /8/9 Ext. 150 Fax : +91.120.258.9343 -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
