help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Build gsl-2.3 using MinGW


From: maxgacode
Subject: Re: [Help-gsl] Build gsl-2.3 using MinGW
Date: Tue, 31 Jan 2017 01:19:35 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

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

[Prev in Thread] Current Thread [Next in Thread]