Problems while linking libmysqlclient_r.so
Posted by: rupali gaikwad
Date: March 13, 2012 07:19AM

g++ -L/usr/local/lib -L/lib/64 -L/opt/mysql/mysql/lib -L../../dependencies/glog/lib -L../../dependencies/libevent/lib -L../../dependencies/json/jsoncpp/lib -ljson-gcc-3.4.3_libmt -levent -lglog -lz -lmysqlclient_r -lpthread -lnsl -lumem -lmysys -lmystrings -o ../../dbprocess/bin/dbprocess dbprocess.o sessionlookupcsidrequest.o sessionlookupipv4request.o ../dbframework/connectionpool.o ../dbframework/connectionproxy.o ../dbframework/dbconnection.o ../framework/rpcmethod.o ../framework/rpcmethoddispatcher.o ../framework/rpcmethodfactory.o ../framework/jsonmethod.o ../framework/libeventmethoddispatcher.o ../framework/tobject.o ../framework/acceptor.o ../framework/configuefile.o ../framework/connmethoddata.o
Undefined first referenced
symbol in file
mysql_error ../dbframework/dbconnection.o
mysql_close ../dbframework/dbconnection.o
mysql_stmt_store_result sessionlookupcsidrequest.o
mysql_stmt_close ../dbframework/dbconnection.o
mysql_stmt_fetch sessionlookupcsidrequest.o
mysql_stmt_error sessionlookupcsidrequest.o
mysql_options ../dbframework/dbconnection.o
mysql_stmt_free_result sessionlookupcsidrequest.o
mysql_stmt_bind_result sessionlookupcsidrequest.o
mysql_stmt_num_rows sessionlookupcsidrequest.o
mysql_stmt_prepare ../dbframework/dbconnection.o
mysql_ping ../dbframework/dbconnection.o
mysql_init ../dbframework/dbconnection.o
mysql_stmt_bind_param sessionlookupcsidrequest.o
mysql_real_connect ../dbframework/dbconnection.o
mysql_stmt_execute sessionlookupcsidrequest.o
mysql_stmt_init ../dbframework/dbconnection.o
ld: fatal: Symbol referencing errors. No output written to ../../dbprocess/bin/dbprocess
collect2: ld returned 1 exit status



also tried ldd /opt/mysql/mysql/lib/libmysqlclient_r.so
and checked all dependencies are covered

Options: ReplyQuote


Subject
Views
Written By
Posted
Problems while linking libmysqlclient_r.so
2734
March 13, 2012 07:19AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.