问题描述
因此失败:
./common/errors.hpp:17:36: error: redefinition of 'aerror_other' with a different type: 'const acommon::ErrorInfo *const' vs 'const struct AspellErrorInfo *const'
我已经多次看到此错误,但是没有看到任何修复.
I've seen this error mentioned several times, but I've not seen any fixes.
我想我可以安装Fink或MacPorts,但是我对这两种软件的经验是混杂的(令人沮丧的),对于一个程序来说似乎有点过头了.有没有办法构建aspell,还是Fink或MacPorts是唯一可行的选择? Fink或MacPorts会减少问题的发生?
I suppose I could install Fink or MacPorts, but my experience with both of those has been mixed (and frustrating), and it seems like overkill for just one program. Is there a way to get aspell to build, or is Fink or MacPorts the only practical option? Which will cause fewer problems, Fink or MacPorts?
推荐答案
这些外部代码的定义不适用于C ++-在interfaces/cc/aspell.h
中用这些预处理器标签包围整个块:
The definition of those externs is not for C++ - surround the entire block with these preprocessor tags in interfaces/cc/aspell.h
:
#ifndef __cplusplus
extern const struct AspellErrorInfo * const aerror_other;
...snip...
extern const struct AspellErrorInfo * const aerror_invalid_expression;
#endif
这篇关于Aspell无法在OS X 10.9(Mavericks)上构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!