|
From: | CC111310 |
Subject: | Linking problem using libstdc++.a |
Date: | Thu, 7 Mar 2002 12:43:52 -0000 |
Hi, I've got a problem when I try linking my C++
program with the libstdc++.a library. I get the following errors, D:\Project\Kenux>make link arm-strongarm-coff-ld
-Map mapfile.txt -warn-common -o audiow.bin \ -e ENTRY
-Tlinker.txt first.o function.o
exception.o \ swi_file.o irq_file.o asmprocess.o lowlevelc.o init.o \ utility.o heap_manager.o timer.o process.o MMU_Setup.o \ channel.o
SoftChan.o DMATransmit.o DMAReceive.o sema.o doprnt.o \ sprintf.o stabs.o strout.o ntuapp.o c_plusobj.o\ memory_manager.o
cevent.o LnBlackboard.o LnTokenizer.o \ ctdt.o C_PlusRuntime.o fixlink.o -LC:/cygwin/new/build-install/lib/gcc-l ib/arm-strongarm-coff/2.95.3-5
\ -lgcc
-lstdc++ armheap.o C:/cygwin/new/build-install/lib/gcc-lib/arm-strongarm-coff/2.95.3-5/libgcc.a(_eh .o): In function `_default_terminate': /new/build-gcc/gcc/../../gcc-2.95.3-5/gcc/libgcc2.c(.text+0xc):
undefined refere nce to `abort' C:/cygwin/new/build-install/lib/gcc-lib/arm-strongarm-coff/2.95.3-5/libgcc.a(_eh .o): In function `_throw_type_match': /new/build-gcc/gcc/../../gcc-2.95.3-5/gcc/libgcc2.c(.text+0x40):
undefined refer ence to `strcmp' C:/cygwin/new/build-install/lib/gcc-lib/arm-strongarm-coff/2.95.3-5/libgcc.a(_eh .o): In function `new_eh_context': /new/build-gcc/gcc/../../gcc-2.95.3-5/gcc/libgcc2.c(.text+0x90):
undefined refer ence to `memset' C:/cygwin/new/build-install/lib/gcc-lib/arm-strongarm-coff/2.95.3-5/libgcc.a(_eh .o): In function `eh_context_static': /new/build-gcc/gcc/../../gcc-2.95.3-5/gcc/libgcc2.c(.text+0x124):
undefined refe rencemake: *** [link] Interrupt The errors are quite long (I've cut short the
dump on the top) and most of it is undefined references error. How do I resolve these undefined
references?? I've gone to the
libgcc2.c file and found the instances of the undefined references and
commented them out, then I re-make all and install the compiler, but still the
same error is there although the line is already commented out. I'm using cygwin on
Windows2000 to compile this program for the StrongARM
SA-110 processor. I've build this
cross-compiler from the source code provided by cygwin.
Using binutils 2.11.2 and
gcc-2.95.3-5. I can compile C
programs with just libgcc.a library. But it won't work for C++ programs so I
added libstdc++.a library to the link, but I get this
error instead. Can anyone HELP??? Thank you very much. Regards, CC111310. P/s
Can you reply to my question directly to this
email address, I'm not sure if i can read mails from
the mailing list. Thanks. |
[Prev in Thread] | Current Thread | [Next in Thread] |