This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
C++ Linker error
- From: Tim michals <tcmichals at yahoo dot com>
- To: ecos-discuss <ecos-discuss at sources dot redhat dot com>
- Date: Thu, 24 Jul 2003 22:12:31 -0700 (PDT)
- Subject: [ECOS] C++ Linker error
Background: using arm-elf-gcc 3.2.1 on XP. I'm
compiling fltk with the following flags:
-g -O2 -Wall -Wunused -ffunction-sections
-fdata-sections -fno-rtti -fno-exceptions
-finit-priority
(I did not include -fvtable-gc, if I use this flags
the linker gets a protection fault, still trying to
figure this out )
I'm trying to link FLTK (which is a graphics library)
and I'm getting the following errors:
.44/libnx11.a -Xlinker -Map -Xlinker ecos_app.map
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: warning: no memory region specified for
section `.rel.dyn'
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: warning: no memory region specified for
section `.got'
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: warning: no memory region specified for
section `.got.plt'
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: section .data [0002a0a4 -> 0007dc6b] overlaps
section .rom_vectors [0004
0000 -> 0004003f]
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: section .got [00029fec -> 0002a33f] overlaps
section .gcc_except_table [
00029fec -> 0002a0a3]
/opt/ecos/gnutools/arm-elf/bin/../lib/gcc-lib/arm-elf/3.2.1/../../../../arm-elf/
bin/ld: section .got.plt [0002a340 -> 0002a34b]
overlaps section .data [0002a0a4
-> 0007dc6b]
configWindow.o:fltk-1.1.4rc1/FL/Fl_Output.H:34:
undefined reference to `typeinfo
for Fl_Input'
./nxlib-0.44/libnx11.a(OpenDis.o): In function
`XOpenDisplay':
/ecos-c/microbit/newExamples/windows/nxlib-0.44/OpenDis.c:209:
undefined referen
ce to `_impure_ptr'
collect2: ld returned 1 exit status
make: *** [ecos_app] Error 1
Any clues? what does the flag -fvtable-gc do?
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.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