Hello,
I have a problem compiling my code which worked fine till an upgrade from
fedora core 1 to fedora core 4. This is the error message that i get:
moby [6] % make
g++ -g -o test.out test.cpp weblogs.cpp -O2 -lstdc++ -I/usr/include/mysql++
-I/usr/include/mysql -L/usr/lib/mysql -L/usr/lib/libmysqlpp.a -lz
-lmysqlclient -lmysqlpp
/usr/bin/ld: warning: libmysqlclient.so.10, needed by
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so, may conflict with
libmysqlclient.so.14
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::basic_ostream<char, std::char_traits<char> >::seekp(long,
std::_Ios_Seekdir)'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::basic_istream<char, std::char_traits<char> >::seekg(long,
std::_Ios_Seekdir)'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_Rep::_S_create(unsigned int, std::allocator<char>
const&)'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::_S_empty_rep_storage'
/usr/lib/gcc/i386-redhat-linux/4.0.0/../../../libmysqlpp.so: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
collect2: ld returned 1 exit status
make: *** [test.out] Error 1
i found a similar thing here in this thread (around 2 months ago):
http://lists.mysql.com/plusplus/4493
it ends by suggesting an upgrade in the binutils version (did that work
??). This is the binutils version that i have now: binutils-2.15.94.0.2.2-2.1
which seems to be fine. i am currently having mysql 4.1 (i had 3.23.58 when
it was working). i have gcc version: gcc 4.0.0.
Please let me know if i am missing something here ??
Thanks,
Aravind.