在HPUX上编译NCURSES src

时间:2010-09-16 14:59:10

标签: 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 wrapper such as unproto

我该如何解决此错误?

2 个答案:

答案 0 :(得分:0)

如配置输出所示,您应该安装HPUX版本的gcc或使用unproto作为包装器

答案 1 :(得分:0)

在配置文件中注释以下行。

export CC="cc"

Here得到答案。