List:MySQL++« Previous MessageNext Message »
From:Sandeep Gupta Date:January 15 2006 7:01pm
Subject:undefined reference in libmysqlpp
View as plain text  
Hi all,
 I hope somebody can help pinpoint the error. I am new to mysql and mysql++.

This is the command:
g++32 -g   -I../leda/incl   -I.   -I/usr/local/include/tre/ 
-I/usr/local/include/boost-1_33_1/ -I/usr/local/include/mysql++/
-I/usr/include/mysql/ -o tester tester.o  $(OBJECTS)  -L/usr/X11R6/lib
 -L/usr/local/lib -L../leda -L/usr/lib/mysql/ -lX11 -lD3 -lW -lP -lG
-lL -lX11 -lm -lpthread  -ltre -lnsl -l
tcmalloc -lboost_date_time-gcc -lxmlrpc_server_abyss++
-lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_abyss -lxmlrpc_server
 -lxmlrpc++ -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lmysqlclient
-lmysqlpp

And here is the error:

/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__exchange_and_add(int volatile*, int)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__pool<true>::_M_initialize(void (*)(void*))'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage'
/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__pool<true>::_M_reserve_block(unsigned int, unsigned
int)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*,
std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__pool<true>::_M_reclaim_block(char*, unsigned int)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_Rep::_S_create(unsigned int, unsigned int, std::allocator<char>
const&)'
/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__pool<true>::_M_get_thread_id()'
/usr/local/lib/libmysqlpp.so: undefined reference to
`__gnu_cxx::__pool<true>::_M_destroy_thread_key(void*)'
collect2: ld returned 1 exit status
make: *** [tester] Error 1

Thanks
sandeep















I
Thread
undefined reference in libmysqlppSandeep Gupta15 Jan
Re: undefined reference in libmysqlppSandeep Gupta15 Jan
  • Re: undefined reference in libmysqlppChris Frey15 Jan
Re: undefined reference in libmysqlppSandeep Gupta15 Jan