linux so compile problem
hello everyone,
i have a problem in linux shared library compile problem. i have writen some functions which include mysql header file. now i want to compile these functions to a shared library, indeed it does. however, when i write a test function which includes the shared library i made it says undefine reference "mysql_init" , "mysql_real_connect".
could someone tell me why?
[解决办法]
You should link the relative lib file of mysql_init ...