简体   繁体   English

在C中出现错误消息“未定义的符号:mysql_get_client_info”

[英]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.

相关问题 未定义对“ mysql_get_client_info”的引用 - undefined reference to `mysql_get_client_info' OSX dyld:懒惰的符号绑定失败:找不到符号:_mysql_get_client_info - OSX dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info Ruby on Rails服务器无法启动:dyld:惰性符号绑定失败:未找到符号:_mysql_get_client_info - Ruby on Rails server won't start: dyld: lazy symbol binding failed: Symbol not found: _mysql_get_client_info 从sqlclient错误消息获取更多信息 - Get more info from sqlclient error message python 上的 SWIG 错误导入“未定义符号:mysql_query” - SWIG error on python import 'undefined symbol: mysql_query' 使用C#将点符号插入到MySQL错误 - Insert dot symbol with C# to mySQL error Visual Studio 2017中的MySQL连接器/ C ++错误“无法解析的外部符号_get_driver_instance” - MySQL connector/C++ error “Unresolved external symbol _get_driver_instance” in Visual Studio 2017 如何从MySQL获取最后一条错误消息? - How to get last error message from MySQL? 可怕的500错误试图获取Hibernate和海报到百里香的MySql信息:( - Dreaded 500 error trying to get MySql info with hibernate and poster into thymeleaf :( swig mysql:undefined symbol:mysql_init&#39; - swig mysql: undefined symbol: mysql_init'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM