Il 30/01/2017 05:27, Michael Kelley ha scritto:

I was able to build gsl-2.3 using a recent version of cygwin (apparently
successfully, but have not used it).  However, what I really want is build
for Windows 10 using MinGW.  I found some info about building using Visual
Studio (which I don't have) but very little about MinGW.  Is there a
pointer to the necessary info?


I'm currently using GSL with MinGW64 on Windows 7 64 bit. I'm usually able to compile GSL (with make check reporting no errors) using the official archive and the usual

./configure --disable-shared
make
make check

with the following seettings for CFLAGS

CFLAGS="-mfpmath=sse -msse2 -O2 -fexceptions -mthreads -DHAVE_INLINE -DGSL_DISABLE_DEPRECATED -DGSL_RANGE_CHECK=0 -D__USE_MINGW_ANSI_STDIO=1"

or for a not-optimized compilation


CFLAGS="-mfpmath=sse -msse2 -fexceptions -mthreads -ffloat-store -DGSL_DISABLE_DEPRECATED -D__USE_MINGW_ANSI_STDIO=1"

Please note, you have to use

-D__USE_MINGW_ANSI_STDIO=1

to get a successful compilation. It is really required!

In the past and with the same procedure I was compiling with MinGW32 on Windows XP 32 bit successfully.

Hope this helps

Max






Reply via email to