[R-SIG-Win] Rtools and gfortran

Avraham Adler avraham.adler at gmail.com
Wed Sep 16 17:29:46 CEST 2015


In /src/gnuwin32/Mkrules.rules already has lquadmath, but not lm.
/src/gnuwin32/fixed/etc/Makeconf has neither.

Avi

On Wed, Sep 16, 2015 at 5:54 AM, Jeroen Ooms <jeroenooms at gmail.com> wrote:
> For those helping with testing with the new tool chain:
>
> Some packages containing Fortran code (such as 'vegan') which worked
> with the old tool chain, gave linking errors under the new one. It
> turns out that the gcc 4.9.3 requires you to explicitly link libm and
> libquadmath. So in Makeconf we need:
>
> FLIBS = -lgfortran -lm -lquadmath
>
> The same flags are used on Linux as well. I am not a Fortran expert,
> but from what I can see these libraries always get statically linked
> so the compiled R binary packages should still work on machines
> without a tool chain.
>
> _______________________________________________
> R-SIG-windows mailing list
> R-SIG-windows at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-windows



More information about the R-SIG-windows mailing list