+ -
当前位置:首页 → 问答吧 → make zhcon 出错,提示OPEN_MAX设置太大,需设置成默认的64,如何修改?

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

时间:2005-03-31

来源:互联网

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

作者: kobe0208   发布时间: 2005-03-31

使用tgz安装解决。

作者: kobe0208   发布时间: 2005-03-31

在zhcon-0.2.3/src/下的inputclient.h和mouse.cpp中加入include <assert.h>
make时依然出错。

*********************
根据置顶贴的tips,已make正确通过了.

作者: kobe0208   发布时间: 2005-03-31