/usr/bin/ld: warning: libstdc++.so.5, needed by /usr/lib/libocci.so, not found (try using -rpath or -rpath-link)
/usr/lib/libocci.so: undefined reference to `std::allocator<char>::~allocator()@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long) const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `operator new[](unsigned long)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `__gxx_personality_v0@CXXABI_1.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::length() const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `vtable for std::exception@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::__throw_logic_error(char const*)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `operator new(unsigned long)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, unsigned long)@GLIBCPP_3.2'请看第一行,这个问题如何解决?拜托各位大侠了!
/usr/lib/libocci.so: undefined reference to `std::allocator<char>::~allocator()@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string()@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long) const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `operator new[](unsigned long)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `__gxx_personality_v0@CXXABI_1.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::length() const@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `vtable for std::exception@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::__throw_logic_error(char const*)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `operator new(unsigned long)@GLIBCPP_3.2'
/usr/lib/libocci.so: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::assign(std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned long, unsigned long)@GLIBCPP_3.2'请看第一行,这个问题如何解决?拜托各位大侠了!
或者
ln -s /usr/lib/libocci.so
不行,这文件有,我用的系统是
[root@localhost lib]# uname -a
Linux localhost.localdomain 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux用的开发包是:
oracle-instantclient-basic-10.2.0.3-1.x86_64.rpm
oracle-instantclient-devel-10.2.0.3-1.x86_64.rpm