【问题标题】:Aspell won't build on OS X 10.9 (Mavericks)Aspell 不会在 OS X 10.9 (Mavericks) 上构建
【发布时间】:2014-08-20 02:06:03
【问题描述】:

因此失败了:

./common/errors.hpp:17:36: error: redefinition of 'aerror_other' with a different type: 'const acommon::ErrorInfo *const' vs 'const struct AspellErrorInfo *const'

我已经多次看到此错误,但我没有看到任何修复。

我想我可以安装 Fink 或 MacPorts,但是我对这两种程序的体验好坏参半(而且令人沮丧),而且对于一个程序来说似乎有点矫枉过正。有没有办法让 aspell 构建,还是 Fink 或 MacPorts 是唯一实用的选择? Fink 和 MacPorts 哪个会导致更少的问题?

【问题讨论】:

    标签: macports aspell fink


    【解决方案1】:

    这些外部变量的定义不适用于 C++ - 用interfaces/cc/aspell.h 中的这些预处理器标记包围整个块:

    #ifndef __cplusplus
    extern const struct AspellErrorInfo * const aerror_other;
    ...snip...
    extern const struct AspellErrorInfo * const aerror_invalid_expression;
    #endif
    

    【讨论】:

      【解决方案2】:

      @lotsoffreetime 的答案有效,但需要澄清。

      基本上,您必须通过添加来编辑interfaces/cc/aspell.h文件

      #ifndef __cplusplus
      

      在“extern”错误列表之前,以:

      extern const struct AspellErrorInfo * const aerror_other;

      并添加

      #endif
      

      在列表的末尾,在它读取之后

      extern const struct AspellErrorInfo * const aerror_invalid_expression;

      【讨论】:

        猜你喜欢
        • 2014-05-10
        • 2013-11-01
        • 1970-01-01
        • 2013-11-03
        • 2014-03-05
        • 1970-01-01
        • 2013-11-11
        • 2013-11-17
        • 1970-01-01
        相关资源
        最近更新 更多