This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Build problem


Please help me.
I can's build the "Hello world" program .
The list is my environment .
-------
i386 & windows 2000
install 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 the file : "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 "
but I can't finish it.
This is the error message .
--------------------------------------------------------------------------------
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 
ain':
/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
LOBAL_.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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]