If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Calling MySQL client library in MySQL Server (Linux)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-17-04, 14:28
padm2016 padm2016 is offline
Registered User
 
Join Date: Oct 2003
Posts: 16
Calling MySQL client library in MySQL Server (Linux)

Experts,

Im trying to use the MySQL client APIs in the MySQL server source code, to implement distributed query processing in MySQL.

I included the "mysql.h" file in the appropriate server source files and when I run the "make" file, I get this following error.

undefined reference to "undefined reference to `mysql_real_connect'".

How do I change my server Makefile to link to the /libmysql/.libs/libmysqlclient.so file?
or
How do I come over this problem?

TIA,
Student
Reply With Quote
  #2 (permalink)  
Old 05-18-04, 16:56
padm2016 padm2016 is offline
Registered User
 
Join Date: Oct 2003
Posts: 16
I have found the solution.

The server program wasnt able to link to the MySQL client libraries. We need to set the appropriate path (libmysqlclient.so) in the "LIBS" attribute of the Makefile.

Thanks,
Student
Reply With Quote
  #3 (permalink)  
Old 05-30-11, 22:54
kevinkwh kevinkwh is offline
Registered User
 
Join Date: May 2011
Posts: 1
face same problem

Hi
I'm facing the same problem.
Can you tell me how should i do ? Since I'm new to C , I don't understand what you had written? Could you please write it for me. Thanks !!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On