gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] Error while linking with C lib


From: Gaius Mulley
Subject: Re: [Gm2] Error while linking with C lib
Date: Fri, 06 Nov 2009 00:28:22 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Martin Kalbfuß <address@hidden> writes:

> The program doesn't matter it's a linking issue. The library is shiped
> with the system. So it's compiled with another gcc version. But I hadn't
> problems with other libs so far.
>
> This is the result with -v option.
>
> GNU C++ Version 4.1.2 (i686-pc-linux-gnu)
>       kompiliert von GNU-C-Version 4.3.4.
> GGC-Heuristik: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
> Compiler executable checksum: 3330bb9080b76546595860d21e5048af
>  as --traditional-format -V -Qy -o /tmp/ccsGy9GFstart.o /tmp/cc4yiSPT.s
> GNU assembler version 2.20 (i486-linux-gnu) using BFD version (GNU
> Binutils for Debian) 2.20
>  rm -f /tmp/cciGlHmx.a
>  /home/martin/opt/libexec/gcc/i686-pc-linux-gnu/4.1.2/gm2lcc
> -ftarget-ar=/usr/bin/ar -ftarget-ranlib=/usr/bin/ranlib
> -fobject-path=/home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim:/home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/logitech
>  -v -exec -startup /tmp/ccsGy9GFstart.o -ar -o /tmp/cciGlHmx.a 
> /tmp/ccqBJU9b.lst
> /usr/bin/ar
> rc /tmp/cciGlHmx.a /tmp/ccsGy9GFstart.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/Storage.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/SYSTEM.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/M2RTS.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/RTExceptions.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/StrIO.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/StrLib.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/ASCII.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/Assertion.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/DynamicStrings.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/NumberIO.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/termios.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/FIO.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/errno.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/IO.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/StdIO.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/Debug.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/SysStorage.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/M2EXCEPTION.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/gm2/pim/SysExceptions.o 
> ALLEGRO.o
> /usr/bin/ranlib /tmp/cciGlHmx.a 
>  /home/martin/opt/libexec/gcc/i686-pc-linux-gnu/4.1.2/collect2
> --eh-frame-hdr -m elf_i386
> -dynamic-linker /lib/ld-linux.so.2 /usr/lib/crt1.o /usr/lib/crti.o 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/crtbegin.o -L/usr/local/lib 
> -L/home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2 
> -L/home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/../../.. /tmp/cciGlHmx.a 
> -lallegro-4.9.14 -lm -lstdc++ -lgcc_eh -lgcc_s -lgcc -lc -lgcc_s -lgcc 
> /home/martin/opt/lib/gcc/i686-pc-linux-gnu/4.1.2/crtend.o /usr/lib/crtn.o
> /usr/lib/libGLU.so.1: undefined reference to `operator new[](unsigned
> int)@GLIBCXX_3.4'
> /usr/lib/libGLU.so.1: undefined reference to `operator
> delete(void*)@GLIBCXX_3.4'
> /usr/lib/libGLU.so.1: undefined reference to `vtable for
> __cxxabiv1::address@hidden'
> /usr/lib/libGLU.so.1: undefined reference to
> address@hidden'
> /usr/lib/libGLU.so.1: undefined reference to `operator
> delete[](void*)@GLIBCXX_3.4'
> /usr/lib/libGLU.so.1: undefined reference to `vtable for
> __cxxabiv1::address@hidden'
> /usr/lib/libGLU.so.1: undefined reference to `vtable for
> __cxxabiv1::address@hidden'
> /usr/lib/libGLU.so.1: undefined reference to
> address@hidden'
> /usr/lib/libGLU.so.1: undefined reference to `operator new(unsigned
> int)@GLIBCXX_3.4'
> collect2: ld gab 1 als Ende-Status zurück

Hi Martin,

thanks for the info - hmm, looks like it needs -lstdc++ for the
g++-3.4 release.  This might be problematic, you could try adding

 /usr/lib/gcc/x86_64-linux-gnu/4.3.2/libstdc++.a
                                   ^
                           your version might differ here...

to the gm2 command line and see if this resolves the references.

regards,
Gaius




reply via email to

[Prev in Thread] Current Thread [Next in Thread]