VC++2005, MySQL5.1.57已经完全安装,include目录,lib目录和项目依赖的lib已经添加,并且目录下存在mysql.h#include "stdafx.h"
#include "winsock2.h"
#include <windows.h>
#include <iostream>
//#include <my_global.h>
#include <mysql.h>
#include <stdio.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
............但编译时
总是Cannot open include file: 'mysql.h': No such file or directory
怎么回事呢?
#include "winsock2.h"
#include <windows.h>
#include <iostream>
//#include <my_global.h>
#include <mysql.h>
#include <stdio.h>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
............但编译时
总是Cannot open include file: 'mysql.h': No such file or directory
怎么回事呢?
解决方案 »
- mysql连接远端服务器时遇到了问题
- 我想用mysql做个小型的数据库系统
- mysql乱码
- 求关于mysql InnoDB引擎 模糊查询的解决思路
- 关于My SQL存储过程的问题,创建不了存储过程啊!!!急
- 库时存有一字段是datetime类型,如2000-010-02 11:22:05,只取出2000-010-02,在sql语句中怎么写?
- 在mysql中如何让password字段不显示明文?
- 关于Mysql中外键foreign key
- 现在游戏行业用存储过程已经是常态了吗
- 求助,想要将查询的时间范围限制为2019-06-29 and 2019-10-15,应该怎么写
- 外键约束的InnoDB数据如何备份和恢复还原
- 数据查询 外连接(left out join .. on)
我在 工具-选项-项目和解决方案-VC++路径-包含文件 中添加Mysql的include目录为什么不行?
库文件也是这样,必须在代码中添加绝对路径,自己在附加依赖项中加不行。