Aspell won't build on OS X 10.9 (Mavericks)

This fails:

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

      

I have seen this error mentioned several times, but I have not seen any fixes.

I assume I can install Fink or MacPorts, but my experiences with both have been mixed (and frustrating) and seems 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?

+1


source to share


2 answers


The definition of these externs is not for C ++ - concatenate the whole 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

      

+3


source


@Lotsoffreetime's answer works but needs clarification.

Basically, you need to edit the file interfaces/cc/aspell.h

by adding

#ifndef __cplusplus

      

before the "extern" error list that starts with:

extern const struct AspellErrorInfo * const aerror_other;



and add

#endif

      

at the end of the list, after he reads

extern const struct AspellErrorInfo * const aerror_invalid_expression;

+1


source







All Articles