This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
How can I make executable file from the host pc for target pc ?
- From: Simun <shiimun at yahoo dot com>
- To: ecos-discuss at sources dot redhat dot com
- Date: Mon, 1 Apr 2002 22:41:00 -0800 (PST)
- Subject: [ECOS] How can I make executable file from the host pc for target pc ?
Hi
can u tell what kind of problem is this ?
and how can I solve this problem ?
host platform is winNT [having cygwin]
target is i386-elf-pc
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'
crt0.o(.text+0x0):crt0.c: first defined here
crt0.o(.data+0x0):crt0.c: multiple definition of
`___cygwin_crt0_bp'
crt0.o(.data+0x0):crt0.c: first defined here
/tools/H-i686-pc-cygwin/i386-elf/bin/ld: cannot find
-lc
collect2: ld returned 1 exit status
pls reply if u have the solution
thanks
and in linux there is no crt0.o for that it is giving
/tools/H-i686-pc-linux-gnu/i386-elf/bin/ld: cannot
open crt0.o: No such file or directory
collect2: ld returned 1 exit status
where shall I get it ? if I get it then I will get
the problem like this ,
/tools/H-i686-pc-cygwin/i386-elf/bin/ld: cannot find
-lc
collect2: ld returned 1 exit status
thanks
rgds.
Simun
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://http://taxes.yahoo.com/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss