读书人

linux so compile problem解决思路

发布时间: 2013-07-01 12:33:04 作者: rapoo

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

读书人网 >C语言

热点推荐