简体   繁体   中英

Error message “undefined symbol: mysql_get_client_info” in C

I am attempting to learn C!

I have looked at numerous documentation and tutorials online and I am attempting to get some simple output of the MySQL client version as per this website .

I do not understand however what is causing the below error message that I am receiving:

undefined symbol: mysql_get_client_info

#include <mysql/mysql.h>

DLLFUNC int MOD_LOAD(m_sql)(int module_load)
{
        sendto_ops("MySQL client version: %s", mysql_get_client_info());
        return MOD_SUCCESS;
}

When do you get this message? Are you linking with the MySQL library?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM