RE: [suse-amd64] a simple program using std::vector cannot link under SuSE AMD64
Try clearing your PATH and LD_LIBRARY_PATH from Intel & PGI compiler-specific entries, and then rebuild. -- Regards, Vadym Krevs -----Original Message----- From: Simeon Nifos [mailto:archwndas@yahoo.com] Sent: Sun 3/20/2005 9:50 AM To: suse-amd64@suse.com Subject: [suse-amd64] 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 -- Check the List-Unsubscribe header to unsubscribe For additional commands, email: suse-amd64-help@suse.com ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
participants (1)
-
Vadym Krevs