slk10.1下 zhcon-0.2.3编译安装出错
时间:2005-08-25
来源:互联网
make的时候出现以下错误:
In file included from zhcon.cpp:54: inputclient.h: In static member function `static void InputClient::SetConsole(Console*)': inputclient.h:37: error: `assert' undeclared (first use this function) inputclient.h:37: error: (Each undeclared identifier is reported only once for each function it appears in.) zhcon.cpp:262:6: warning: #warning OPEN_MAX undefined so far,try define it to 64 make[3]: *** [zhcon.o] 错误 1 make[3]: Leaving directory `/root/zhcon-0.2.3/src' make[2]: *** [all-recursive] 错误 1 make[2]: Leaving directory `/root/zhcon-0.2.3/src' make[1]: *** [all-recursive] 错误 1 make[1]: Leaving directory `/root/zhcon-0.2.3' make: *** [all] 错误 2
作者: failsafe 发布时间: 2005-08-25
作者: shockman 发布时间: 2005-08-25
可是,这个解决的方法也太奇怪了吧?
作者: failsafe 发布时间: 2005-08-25
作者: windrose 发布时间: 2005-08-25
那的新手基本都不看的
苦中作乐
作者: 甜甜的笑一个 发布时间: 2005-08-26
#include <assert.h>
我试了一下,果然可以编译了。请问这是为什么?以及怎么知道应该加入这个头文件的?
作者: shadkong 发布时间: 2005-08-26
作者: 妖狐藏马 发布时间: 2005-08-27
作者: 妖狐藏马
assert.h这个头文件包含了编译所需要的定义函数
|
作者: failsafe 发布时间: 2005-08-27
是不是在其它发行版里对应的头文件不叫 assert.h,而且 zhcon 默认使用的头文件也不是 assert.h,所以造成了这种问题?
作者: shadkong 发布时间: 2005-08-27
这个问题很早就有了
作者: linuxcpp 发布时间: 2005-08-28
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28