LinuxSir.cn,穿越时空的Linuxsir!

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

zhcon compile error

[复制链接]
发表于 2003-11-15 15:02:32 | 显示全部楼层 |阅读模式
zhcon: release 0.2.3
lfs: release 5.0 with gpm installed(works well), also hardly any blfs things installed
The error is reported as:

...
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 64make[3]: *** [zhcon.o] Error 1
make[3]: Leaving directory `/sources/zhcon-0.2.3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/sources/zhcon-0.2.3/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/sources/zhcon-0.2.3'
make: *** [all] Error 2

I can't find any topics about this error. Does anyone have some idea? Thanks.
发表于 2003-11-15 15:13:19 | 显示全部楼层
./configure --disable-gpm
我编译过这个的,应该没问题,不过我从来不装gpm,所以可能是它吧?
发表于 2003-11-15 20:22:49 | 显示全部楼层
是不是gcc版本太高?有些程序用gcc 3.3.x编译会出问题的
发表于 2003-11-16 11:14:44 | 显示全部楼层
1、tar -xjvf zhcon-0.2.3.tar.gz
2、nano zhcon-0.2.3/src/inputclient.h
增加一行
#include <assert.h>
3、nano zhcon-0.2.3/src/mouse.cpp //好像是cpp,要不你看其错误提示
增加一行
#include <assert.h>
4、重新编译
./configure --prefix=/usr
make
make install
发表于 2003-11-16 11:45:10 | 显示全部楼层
试试用gcc-2.95.3
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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