代码之家  ›  专栏  ›  技术社区  ›  Ibrahim

在hpux上编译ncurses-src

  •  0
  • Ibrahim  · 技术社区  · 16 年前

    我正在尝试从源代码编译ncurses-5.7,并在运行后进行编译。/配置我得到以下错误:

    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 回复  |  直到 13 年前
        1
  •  0
  •   Hasturkun    16 年前

    正如configure output建议的那样,您应该安装一个hpux版本的gcc或者使用unfto作为包装器。

        2
  •  0
  •   Ibrahim    16 年前

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

    export CC="cc"
    

    答案来自 Here .