This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: How can I make executable file from the host pc for target pc ?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- To: Simun <shiimun at yahoo dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 04 Apr 2002 07:03:06 +0100
- Subject: Re: [ECOS] How can I make executable file from the host pc for target pc ?
- References: <20020402064100.97007.qmail@web13104.mail.yahoo.com>
Simun wrote:
> I am trying to make an executable file of a .c file
> , when I am using general gcc then it works but when I
> am using i386-elf-gcc
> then it is not working . it is given below .
>
> $ /tools/H-i686-pc-cygwin/bin/i386-elf-gcc.exe -o
> hello crt0.o hello.c -I
> //d/ecos/work/tt2_install/include/
>
> crt0.o(.text+0x0):crt0.c: multiple definition of
> `_mainCRTStartup'
[snip]
Follow the documentation! It never says to use a crt0.o, so don't put it on
your command line!
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss