Hello, I've successfully compiled aspell-cvs (also aspell-60.4) on windows with mingw and the free-as-beer compiler Visual C++ 2005 Express.
The changes were minimal, due to the clean C++ code of aspell. :) I had to add some functions from dirent.h to compile and link aspell.exe. I've used CMake 2.4.2 which generates makefiles for mingw (cmd shell), mingw (msys shell), nmake, and project files for the IDE. All files could reside in a separate folder and will not pollute the hierarchy. If you are interested in adding this support to aspell, I could provide the files and more information - and will also have more questions :) Best regards, Peter Diff against the cvs version: ? win32/CMakeLists.txt ? win32/dirent.c ? win32/dirent.h ? win32/static_filters.src.cpp Index: common/file_util.cpp =================================================================== RCS file: /sources/aspell/aspell/common/file_util.cpp,v retrieving revision 1.16 diff -u -B -b -r1.16 file_util.cpp --- common/file_util.cpp 3 May 2005 05:08:19 -0000 1.16 +++ common/file_util.cpp 10 Jun 2006 19:37:15 -0000 @@ -28,6 +28,7 @@ # include "minwin.h" //minimum windows declarations. # include "asc_ctype.hpp" # define F_OK 0 //does the file exist? +# include <dirent.h> #else # include <unistd.h> # include <dirent.h> Index: win32/settings.h =================================================================== RCS file: /sources/aspell/aspell/win32/settings.h,v retrieving revision 1.5 diff -u -B -b -r1.5 settings.h --- win32/settings.h 15 Feb 2005 08:52:58 -0000 1.5 +++ win32/settings.h 10 Jun 2006 19:37:16 -0000 @@ -106,7 +106,7 @@ // declaring a template param. The other supporte compilers (Borlands // BCB5.5 and GNU C++) require or allow it anywhere in the template // decl. The macro TYPENAME is defines to whatever works. -#ifdef _MSC_VER +#if defined(_MSC_VER) && (_MSC_VER<1310) #define TYPENAME #else #define TYPENAME typename @@ -119,3 +119,5 @@ #define snprintf _snprintf #define vsnprintf _vsnprintf #endif _______________________________________________ Aspell-devel mailing list Aspell-devel@gnu.org http://lists.gnu.org/mailman/listinfo/aspell-devel