如何包含mysql标头? [英] How to include the mysql header?
本文介绍了如何包含mysql标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在从源代码构建一个开源项目,
I'm building an open source project from source,
,并且需要包含<mysql.h>
:
#if USE_MYSQL
#include <mysql.h>
#endif
编译器报告:
mysql.h no such file or directory
MySQL 是另一个很棒的开源项目.我需要做些什么才能使其正常工作?
MySQL is yet another great open source project. What do I need to do to make it work?
推荐答案
对我来说,在Ubuntu 12.04上,我需要使用此include
For me, on Ubuntu 12.04, I needed to use this include
#include <mysql/mysql.h>
这篇关于如何包含mysql标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文