LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1013|回复: 9

slk10.1下 zhcon-0.2.3编译安装出错

[复制链接]
发表于 2005-8-24 21:36:10 | 显示全部楼层 |阅读模式
./configure时一切正常
make的时候出现以下错误:

  1. In file included from zhcon.cpp:54:
  2. inputclient.h: In static member function `static void
  3.    InputClient::SetConsole(Console*)':
  4. inputclient.h:37: error: `assert' undeclared (first use this function)
  5. inputclient.h:37: error: (Each undeclared identifier is reported only once for
  6.    each function it appears in.)
  7. zhcon.cpp:262:6: warning: #warning OPEN_MAX undefined so far,try define it to 64
  8. make[3]: *** [zhcon.o] 错误 1
  9. make[3]: Leaving directory `/root/zhcon-0.2.3/src'
  10. make[2]: *** [all-recursive] 错误 1
  11. make[2]: Leaving directory `/root/zhcon-0.2.3/src'
  12. make[1]: *** [all-recursive] 错误 1
  13. make[1]: Leaving directory `/root/zhcon-0.2.3'
  14. make: *** [all] 错误 2

复制代码

这个是什么问题?
发表于 2005-8-24 21:41:16 | 显示全部楼层
找到inputclient.h和mouse.cpp,在文件中加入#include <assert.h>
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-24 22:11:51 | 显示全部楼层
解决。谢谢。
可是,这个解决的方法也太奇怪了吧?
回复 支持 反对

使用道具 举报

发表于 2005-8-25 08:48:09 | 显示全部楼层
楼主没看置顶帖
回复 支持 反对

使用道具 举报

甜甜的笑一个 该用户已被删除
发表于 2005-8-25 21:21:33 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2005-8-26 17:28:39 | 显示全部楼层
置顶帖里说,要在两个源文件里加入这一句:
#include <assert.h>
我试了一下,果然可以编译了。请问这是为什么?以及怎么知道应该加入这个头文件的?
回复 支持 反对

使用道具 举报

发表于 2005-8-26 23:55:58 | 显示全部楼层
assert.h这个头文件包含了编译所需要的定义函数
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-8-27 16:59:48 | 显示全部楼层
Post by 妖狐藏马
assert.h这个头文件包含了编译所需要的定义函数

难道说这个是软件的bug?那这个错误也太低级了吧。还是说这个是在slackware里面才会出现的问题?
回复 支持 反对

使用道具 举报

发表于 2005-8-27 18:49:51 | 显示全部楼层
应该不会是软件的 bug,估计只是在 Slackware 下才会这样的。
是不是在其它发行版里对应的头文件不叫 assert.h,而且 zhcon 默认使用的头文件也不是 assert.h,所以造成了这种问题?
回复 支持 反对

使用道具 举报

发表于 2005-8-27 20:11:18 | 显示全部楼层
哈哈
这个问题很早就有了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表