I was finally able to test complication using MING64.

On Sat, 10 May 2025 14:03:49 +0000

Vincent Belaïche <vincent....@hotmail.fr> wrote:

> Dear Kevin,
> 
> Thank you for the link to the patch, I had a look at it, but in fact
> there is a simpler solution to fix this, simply add «#define
> _INTL_NO_DEFINE_MACRO_PRINTF» at the beginning of common/config.hpp.

Thanks for the tip.  A better place to put this is in
common/ostream.hpp as that is where the printf method is defined.

> 
> With this addition the compilation goes farther, but then it stops
> again with this error :
> 
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I./gen -I./gen -I./common
> -I./interfaces/cc/ -I./modules/speller/default/
> -DLOCALEDIR=/mingw64/share/locale -I/mingw64/include -g -O2
> -fno-exceptions -MT modules/speller/default/language.lo -MD -MP -MF
> modules/speller/default/.deps/language.Tpo -c
> modules/speller/default/language.cpp  -DDLL_EXPORT -DPIC -o
> modules/speller/default/.libs/language.o
> modules/speller/default/language.cpp:24:12: fatal error: langinfo.h:
> No such file or directory 24 | #  include <langinfo.h> |
> ^~~~~~~~~~~~ compilation terminated.

To fix this change "#ifdef ENABLE_NLS" to "#ifdef
HAVE_LANGINFO_CODESET"

> So finally, what I did is run again configure with option
> --disable-nls, and I could compile aspell (with --disable-nls,
> compilation is successful even w/o the addition «#define
> _INTL_NO_DEFINE_MACRO_PRINTF»). So bad, I can't have the interface in
> French.

The attached patch got Aspell to compile for me without having to
disable NLS.

Kevin

Attachment: aspell.patch
Description: Binary data

Reply via email to