From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Y.P.Liu." <86321019@stu.csie.ncnu.edu.tw> To: ecos-discuss@sources.redhat.com Subject: [ECOS] build "Hello world" Date: Thu, 02 Aug 2001 03:34:00 -0000 Message-id: <20010802011852.5FA2.86321019@stu.csie.ncnu.edu.tw> X-SW-Source: 2001-08/msg00049.html 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.