Home > Database > Mysql Tutorial > mysql的C API中的一个极不厚道的陷阱!

mysql的C API中的一个极不厚道的陷阱!

WBOY
Release: 2016-06-07 15:01:43
Original
1143 people have browsed it

#include stdio.h#include windows.h#include mysql.h mysql.h头文件用到了windows.h,却不包含人家,结果我建了一个控制台工程 导入mysql.h后就以为可以连数据库了,结果爆出mysql_com.h的一堆错误,郁闷! MySQL后来者切记,不论你的工程是否是win32的,都

mysql.h头文件用到了windows.h,却不包含人家,结果我建了一个控制台工程

导入mysql.h后就以为可以连数据库了,结果爆出mysql_com.h的一堆错误,郁闷!

 

MySQL后来者切记,不论你的工程是否是win32的,都得导入windows.h文件,而且必须放在mysql.h之前!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template