On Tue, 6 May 2025, Vincent Belaïche wrote:
Hello,
Here is what I get when compiling from sources on MINGW64 (attached config.log
and compilation log) :
==========================================================
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
common/file_util.lo -MD -MP -MF common/.deps/file_util.Tpo -c
common/file_util.cpp -DDLL_EXPORT -DPIC -o common/.libs/file_util.o
common/file_util.cpp: In function 'bool acommon::need_dir(ParmString)':
common/file_util.cpp:49:13: error: 'asc_isalpha' was not declared in this
scope; did you mean 'isalpha'?
49 | || (asc_isalpha(file[0]) && file[1] == ':')
| ^~~~~~~~~~~
| isalpha
common/file_util.cpp:56:3: warning: control reaches end of non-void function
[-Wreturn-type]
56 | }
| ^
make[1]: *** [Makefile:1524: common/file_util.lo] Error 1
make[1]: Leaving directory '/c/Users/vincentbelaiche/Downloads/aspell-0.60.8.1'
make: *** [Makefile:1657: all-recursive] Error 1
==========================================================
asc_isalpha is defined in "asc_ctype.hpp" but it is only used if WIN32 is
defined so it's not normally included. I don't have easy access to a Windows
machine right now but the attached patch should fix your complication problem.
Kevin
--- common/file_util.cpp~ 2023-12-03 00:09:52.000000000 -0500
+++ common/file_util.cpp 2025-05-08 23:31:14.116060252 -0400
@@ -30,6 +30,7 @@
# define ACCESS _access
# include <windows.h>
# include <winbase.h>
+# include "asc_ctype.hpp"
#else