I am not sure what the exact fault was, it might have been the inclusion
of an extra argument (-o ). Alternatively it seems that I hade included
a "double" compilation of the sourcefile. Actually that would be my guess
apart from the fact that an example project with a similar make-file (the
one I took the structure of the makefile from) had that exact thing and
compiled just fine.
Possibly there was some function call in my application that triggered
this, that was not present in the example one.
- Veronica Loell
The two makefiles are included below.
>
>Subject: Re: error: crt0.c:35: multiple definition of 'start'
> From: "Aaron Ardiri" <[EMAIL PROTECTED]>
> Date: Thu, 23 Jan 2003 10:18:20 +0100
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>
>> The fault was indeed in the makefile, as is often the case when one gets
>> "simple" error messages that are actually not correct. Thanks.
>
>so.. what was the fault? :) telling it here might aid others in the future.
>
>---
The new makefile is:
#====================================================================
CC = m68k-palmos-gcc
CFLAGS = -O2 -Wall
all: ppavotid.prc
ppavotid.prc: ppavotid.o bin.stamp
build-prc -o ppavotid.prc -n "pavotid palm" ppavotid.o *.bin
bin.stamp: Ppavotid.rcp ResourceDefines.h
pilrc Ppavotid.rcp
touch bin.stamp
ppavotid.o: Ppavotid.c ResourceDefines.h
$(CC) $(CFLAGS) Ppavotid.c
clean:
-rm -f *.o ppavotid ppavotid.ro
--------------------------
The old one was:
#====================================================================
CC = m68k-palmos-gcc
CFLAGS = -O2
all: ppavotid.prc
ppavotid.prc: ppavotid ppavotid.ro
build-prc ppavotid.prc "pavotid palm" ppavotid ppavotid.ro
ppavotid.ro: Ppavotid.rcp
pilrc -ro -o ppavotid.ro Ppavotid.rcp
ppavotid: ppavotid.o
ppavotid.o: Ppavotid.c ResourceDefines.h
$(CC) $(CFLAGS) -o ppavotid.o Ppavotid.c
clean:
-rm -f *.o ppavotid ppavotid.ro
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/