[英]Error message “undefined symbol: mysql_get_client_info” in C
I am attempting to learn C! 我正在尝试学习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 . 我已经看了很多在线文档和教程,并且试图从该网站获得一些MySQL客户端版本的简单输出。
I do not understand however what is causing the below error message that I am receiving: 但是,我不明白是什么原因导致我收到以下错误消息:
undefined symbol: mysql_get_client_info
未定义符号: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?
您是否正在与MySQL库链接?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.