[R] Problem: creating shared objects using lapack and blas

About this list Date view Thread view Subject view Author view Attachment view

From: Zhu Wang (zhuw@mail.smu.edu)
Date: Sat 29 May 2004 - 04:11:01 EST


Message-id: <1085767860.2209.16.camel@zwang.stat.smu.edu>

I am having trouble with creating shared objects with Fortran files,
which use numerical libraries Lapack and Blas. I have read the section
in "Writing R Extensions" but could not find what I needed and I am not
at the stage to create a library.

What I did was

$R CMD SHLIB --output=car file1.f file2.f ... file50.f -llapack -lblas

No error message so far,

But

$>dyn.load("./car")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library "/home/zwang/R/pkg/car/src/./car":
  /home/zwang/R/pkg/car/src/./car: undefined symbol: slamch_

I think the way I used to link Lapack and Blas was not correct, even
though it worked fine when I used for running Fortran code before.

Thanks for any advice.

Zhu Wang

Statistical Science Department
Southern Methodist University
Dallas, TX 75275-0332

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:13 EST