[Top][All Lists]
[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: |
Thu, 05 Nov 2009 21:07:59 +0000 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Martin Kalbfuß <address@hidden> writes:
> Hi,
>
> I try to access some C-functions make the C code better accessible.
> libGLU is a dependency of this library.
>
> When I try to link the test program to the library I get the following
> error:
>
> /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'
>
>
> Looks like a C++ issue. Can I do anything about it?
>
> Another question I have is about the generated C code for the main
> function. I have no idea how to get it. I realised, that I need it when
> I want to link the program with ld directly.
>
> Thanks.
Hi Martin,
I wonder if you could post the result from the link if you add '-v' to
the list of command line parameters? Also would it be possible to
post some example code which causes the above?
many thanks,
Gaius