C++ 在HPUX上编译NCURSES src

C++ 在HPUX上编译NCURSES src,c++,c,ncurses,hp-ux,C++,C,Ncurses,Hp Ux,我正在尝试从源代码处编译ncurses-5.7,运行./configure后,出现以下错误: configure: error: Your compiler does not appear to recognize prototypes. You have the following choices: a. adjust your compiler options b. get an up-to-date compiler c. use a wra

我正在尝试从源代码处编译ncurses-5.7,运行./configure后,出现以下错误:

configure: error: Your compiler does not appear to recognize prototypes.
You have the following choices:
        a. adjust your compiler options
        b. get an up-to-date compiler
        c. use a wrapper such as unproto

如何修复此错误?

根据配置输出的建议,您应该安装HPUX版本的gcc,或者使用UNPTO作为包装器,对配置文件中的以下行进行注释

export CC="cc"
从中获得答案。

遵循configure给出的建议如何?系统上安装了gcc。export CC=gcc不起作用,所以我检查了configure,下面一行导致了这个问题。导出CC=CC。因此,在注释该行之后,配置脚本将成功运行。如果这是您的问题,您应该运行。/configure CC=gccI,但是configure正在根据If[uname-s=HP-UX]条件再次设置变量,因此我已注释掉该行,因此它无法再次重置变量。