LinuxSir.cn,穿越时空的Linuxsir!

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

make zhcon 出错,提示OPEN_MAX设置太大,需设置成默认的64,如何修改?

[复制链接]
发表于 2005-3-30 23:17:14 | 显示全部楼层 |阅读模式
slackware10.1 FULL安装。
make zhcon 出错,
make时出现错误,如下:
In file included from /usr/include/c++/3.3.4/backward/strstream:51,
from zhcon.cpp:23:
/usr/include/c++/3.3.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
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] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2







提示OPEN_MAX设置太大,需设置成默认的64,如何修改?
我看以前的帖子也有问过,但没解决。

我没找到 OPEN_MAX在哪里修改。
高手提示下。THANK :thank
 楼主| 发表于 2005-3-31 09:45:02 | 显示全部楼层
使用tgz安装解决。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-31 09:49:58 | 显示全部楼层
在zhcon-0.2.3/src/下的inputclient.h和mouse.cpp中加入include <assert.h>
make时依然出错。

*********************
根据置顶贴的tips,已make正确通过了.
回复 支持 反对

使用道具 举报

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

本版积分规则

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