[R-sig-Debian] Linking Fortran code to BLAS in Ubuntu

Douglas Bates bates at stat.wisc.edu
Sun Dec 10 04:07:11 CET 2006


The preferred way to specify use of the BLAS libraries is with a
Makevars file containing the single line

PKG_LIBS=$(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)

This will work on Ubuntu and on a Mac. It even works on that other
operating system that many unfortunate souls are forced to use.

On 12/9/06, escargot <esharef at gmail.com> wrote:
> Hello!
>
> I have some Fortran code that uses BLAS calls, and would like to compile it
> into a shared object to call it from R as per the "Writing R Extensions"
> manual. What needs to go into the "Makevars" file, so that running the R CMD
> SHLIB will work in Ubuntu?
>
> The code compiles properly on the Mac, with the Makevars line
>     PKG_CFLAGS=-Wl,-framework -Wl,vecLib
> but of course that won't work on Ubuntu :-) . Also, if I need to install any
> packages to make the BLAS work, I'd love to know about it.
>
> Thanks!
> - Emmanuel
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian
>



More information about the R-SIG-Debian mailing list