public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] build "Hello world"
@ 2001-08-02  3:34 Y.P.Liu.
  2001-08-02  5:31 ` Jesper Skov
  2001-08-06 19:32 ` [ECOS] writting ethernet driver for ecos Yong
  0 siblings, 2 replies; 5+ messages in thread
From: Y.P.Liu. @ 2001-08-02  3:34 UTC (permalink / raw)
  To: ecos-discuss

Please help me ... I can's build the "Hello world" program .
the list is my environment .
-------
i386 & windows 2000
directory :
eCos : C:\Program Files\Red Hat\eCos
cygwin : c:\cygwin

The library I build which I use eCos Configuration Tool were build in
C:\cygwin\ework\ework.ecc

I edit C:\Program Files\Red Hat\eCos\examples\Makefile
....
.... PKG_INSTALL_DIR = //c/cygwin/ework_install
....
.....XCC = i386-elf-gcc
....

in C:\Program Files\Red Hat\eCos\examples\
I type "gcc -g -I/ework/ework_install/include hello.c
-L/ework/ework_install/lib -Ttarget.ld -nostdlib "

--------------------------------------------------------------------------------
bash.exe-2.05$ gcc -g -I/ework/ework_install/include hello.c -L/ework/ework_ins
tall/lib -Ttarget.ld -nostdlib
/c/Temp/cc4Trl66.o: In function `main':
/C/Program Files/Red Hat/eCos/examples/hello.c:5: undefined reference to `__main
'
/ework/ework_install/lib/libtarget.a(language_c_libc_vfnprintf.o): In function `
cvt(double, int, int, char *, int, char *, char *)':
//C/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/v1_3_1/src/stdio/output/vfnp
rintf.cxx:933: undefined reference to `_umoddi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/language/c/libc/v1_3_1/src/stdio/output/vfnp
rintf.cxx:933: undefined reference to `_udivdi3'
/ework/ework_install/lib/libtarget.a(kernel_clock.o): In function `GLOBAL_.D.140
00._9Cyg_Clock.real_time_clock':
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
//C/PROGRA~1/REDHAT~1/eCos/packages/kernel/v1_3_1/src/common/clock.cxx:811: unde
fined reference to `_udivdi3'
/ework/ework_install/lib/libtarget.a(kernel_clock.o)://C/PROGRA~1/REDHAT~1/eCos/
packages/kernel/v1_3_1/src/common/clock.cxx:811: more undefined references to `_
udivdi3' follow
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-4/../../../../i686-pc-cygwin/bin/ld: bfd
assertion fail /cygnus/netrel/src/binutils-20010425-2/bfd/stabs.c:600
collect2: ld returned 1 exit status
bash.exe-2.05$
---------------------------------------------------------------------------------
Please tell me , what's wronging ? 
-- 
Y.P.Liu. <u6321019@ncnu.edu.tw>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-06 19:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-02  3:34 [ECOS] build "Hello world" Y.P.Liu.
2001-08-02  5:31 ` Jesper Skov
2001-08-02 10:29   ` Jonathan Larmour
     [not found]   ` <001401c11be8$3fbf7880$fca210ac@utszrtsurveyl>
2001-08-03  0:05     ` [ECOS]Build Redboot for i386 target Jesper Skov
2001-08-06 19:32 ` [ECOS] writting ethernet driver for ecos Yong

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).