Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Posts
    16

    Unanswered: 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

  2. #2
    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

  3. #3
    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 !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •