libstdc++/10633: linking error with stdc++ library

Philip Cheng cheng@pcigeomatics.com
Tue May 6 13:37:00 GMT 2003


Thanks for your reply!   I tried it with g++ and I got the following
error

test.cpp:

void operator delete[](void * pPtr) throw()
{
}

gcc -c test.cpp

g++ -lc -lstdc++ -shared test.o -o test.so
/usr/bin/ld: test.so: undefined versioned symbol name operator 
delete[](void*)@@GLIBCPP_3.2
/usr/bin/ld: failed to set dynamic section sizes: Bad value

Could you tell why?  I did not get any error in gcc 3.1.

Thanks

Philip

On 5 May 2003 bangerth@dealii.org wrote:

> Synopsis: linking error with stdc++ library
> 
> State-Changed-From-To: open->closed
> State-Changed-By: bangerth
> State-Changed-When: Mon May  5 22:41:46 2003
> State-Changed-Why:
>     You must link with g++, rather than trying to do it by
>     hand using ld directly.
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10633
> 



More information about the Gcc-bugs mailing list