[ECOS] build "Hello world"

Y.P.Liu. 86321019@stu.csie.ncnu.edu.tw
Thu Aug 2 03:34:00 GMT 2001


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>



More information about the Ecos-discuss mailing list