a simple program using std::vector cannot link under SuSE AMD64
A simple program using std::vector cannot link in SuSE AMD64 9.2 with the default compiler. The program links if I use gcc-3.4.3. But the default compiler and intel-cce compiler do not. Both link without problems in SuSE i386 9.2 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)'
What can I do? ____________________________________________________________ Do You Yahoo!? Αποκτήστε τη δωρεάν @yahoo.gr διεύθυνση σας στο http://www.otenet.gr
participants (1)
-
Simeon Nifos