------- Additional Comments From dkouroun at cc dot uoi dot gr  2005-03-20 
00:38 -------
Subject: Re:  cannot link program which uses std::(vector. deque) in SuSE 
AMDx86_64

I did everything you said.
I installed gcc once again!
and I also removed gcc-3.4.3 from the .bashrc(PATH, LD_LIBRARY_PATH)

here is my PATH:
----------------
-bash: /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:
/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:
/usr/lib/jvm/jre/bin:/common/compilers/intel_fc_80/bin:
/common/compilers/intel_cce_80/bin:/common/compilers/pgi/linux86-64/5.2/bin: 

and here is my LD_LIBRARY_PATH:
-------------------------------
:/common/compilers/intel_fc_80/lib:/common/compilers/intel_cce_80/lib:
/common/compilers/pgi/linux86-64/5.2/lib:/common/lib/pardiso:

g++ testdeque.cc -o run
************************
/tmp/ccUcOIta.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPim+0x28):
In function `std::__simple_alloc<int, std::__default_alloc_template<(bool)1,
(int)0> >::deallocate(int*, unsigned long)':
: undefined reference to `std::__default_alloc_template<(bool)1,
(int)0>::deallocate(void*, unsigned long)'
/tmp/ccUcOIta.o(.gnu.linkonce.t._ZNSt14__simple_allocIiSt24__default_alloc_templateILb1ELi0EEE8allocateEm+0x28):
In function `std::__simple_alloc<int, std::__default_alloc_template<(bool)1,
(int)0> >::allocate(unsigned long)':
: undefined reference to `std::__default_alloc_template<(bool)1,
(int)0>::allocate(unsigned long)'
collect2: ld returned 1 exit status


# icc testdeque.cc -o run
@@@@@@@@@@@@@@@@@@@@@@@@@@
/tmp/iccmsXYrP.o(.text+0x15f): In function `destr_detour1.0.12.57':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned long)'
/tmp/iccmsXYrP.o(.text+0x247): In function `destr_detour2.0.21.88':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned long)'
/tmp/iccmsXYrP.o(.text+0x259): In function `destr_detour2.0.21.88':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned long)'
/tmp/iccmsXYrP.o(.text+0x3b0): In function `destr_detour2.0.21.88':
: undefined reference to `std::__default_alloc_template<true,
0>::allocate(unsigned long)'
/tmp/iccmsXYrP.o(.gnu.linkonce.t._ZNSt6vectorIiSaIiEED1Ev+0x4f): In function
`destr_detour1.0.12.171':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned long)'
/tmp/iccmsXYrP.o(.gnu.linkonce.t._ZNSt12_Vector_baseIiSaIiEED2Ev+0x26): In
function `std::_Vector_base<int, std::allocator<int> >::~_Vector_base()':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned long)'


The problem persists!
What can I do?



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20559

Reply via email to