* [ECOS] How can I make executable file from the host pc for target pc ?
@ 2002-04-01 22:41 Simun
2002-04-03 22:03 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Simun @ 2002-04-01 22:41 UTC (permalink / raw)
To: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] How can I make executable file from the host pc for target pc ?
2002-04-01 22:41 [ECOS] How can I make executable file from the host pc for target pc ? Simun
@ 2002-04-03 22:03 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2002-04-03 22:03 UTC (permalink / raw)
To: Simun; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-04 6:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-01 22:41 [ECOS] How can I make executable file from the host pc for target pc ? Simun
2002-04-03 22:03 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).