|
发表于 2005-9-21 09:57:04
|
显示全部楼层
这个应该是因为没有包含errno.h的问题,在errno的man手册里有这样一段说明:
- It was common in traditional C to declare errno manually (i.e., extern int errno) instead of including <errno.h>.
- Do not do this. It will not work with modern versions of the C library. However, on (very) old Unix systems,
- there may be no <errno.h> and the declaration is needed.
复制代码
所以,解决办法有:
1.换新版的mysql,应该不会有这样的问题。
2.自己修改源文件,在mysql.c(应该是这个吧?)最开始添加#include<errno.h>
3.修改Makefile,在c++的flags中添加 -include /usr/include/errno.h
任选一个应该都可以。 |
|