The fault was indeed in the makefile, as is often the case when one gets
"simple" error messages that are actually not correct. Thanks.

- Veronica

>
>Subject: Re: error: crt0.c:35: multiple definition of 'start'
>   From: "Chris Antos" <[EMAIL PROTECTED]>
>   Date: Thu, 23 Jan 2003 01:10:10 -0800
>     To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>
>Try looking at the preprocessor output.
>
>For example, suppose you define a function name "void begin(void)".
>But suppose that some header somewhere has this line:
>#define begin start
>
>Then grep would not find "start" in your code, because indeed your code does
>not say "start".  However by the time the compiler gets to parsing your
>code, the preprocessor would have under the covers turned your line "void
>begin(void)" into really "void start(void)".
>
>So just because grep doesn't find the name in your source doesn't mean you
>aren't accidentally _indirectly_ using the name.
>
>Another possibility, is that the makefile is wrong.  For example, if it
>accidentally copied crt0.o to ppavotid.o, and then tried to link, it would
>find "start" in both crt0.o and ppavotid.o.
>
>Just some ideas to hopefully help you think outside the box and track down
>the problem.
>Hope it helps.
>
>// chris
>
>
>
>"Veronica Loell" <[EMAIL PROTECTED]> wrote in message
>news:110215@palm-dev-forum...
>>
>> There is no usage of the symbol "start" in any case combination in my
>> sourcefile ppavotid.c not as a function or as a varaible or anything
>> else. This sourcefile is also the only sourcefile in my project.
>> The only thing that might have happened is that prc-tools creates this
>> function independently.
>> I have done a full text search for the word 'start', I even removed
>> it from the comment just to be sure.
>> I have not written any function called start, I never would but that's
>> not the issue here.
>>
>> Maybe I ought to post this to 'tools' instead, if it is an issue with
>> prc-tools?
>>
>> As I read the errormessage:
>> "There is a function called 'start' in ppavotid.o" (which would be the
>output
>> of Ppavotid.c)
>>
>> Since there is no such function in the sourcefile, I don't really have any
>> way to "correct" my code since there is nothing wrong. Possibly there's a
>> problem with sdk 4.0 and prc-tools 2.2?
>>
>> - Veronica Loell
>>
>> >>> ppavotid.o: In function `start':
>> >
>> >ppavotid.c is definately one of your files - and, it event tells you
>> >that that is where the function 'start' has been written. your not
>> >reading the error messages correctly.
>> >
>> >you cannot have a function called 'start', as, the linker uses this
>> >to determine the entry point to your application.
>> >
>> >---
>> >Aaron Ardiri                           [EMAIL PROTECTED]
>> >CEO - CTO                                              +46 70 656 1143
>> >Mobile Wizardry                         http://www.mobilewizardry.com/
>> >
>> >
>> >--
>> >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/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to