[R] Problem with Fortran 95 code in R
Zhu Wang
zwang at scharp.org
Thu Jun 15 21:19:06 CEST 2006
Dear helpers:
I am trying to call some Fortran 95 code with R-2.3.0 but had problem as
below. Any pointers would be appreciated. Thanks, Zhu Wang
On Linux,
R CMD SHLIB rfh.f
R
> dyn.load("rfh.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library '/home/zwang/rf/rfh.so':
/home/zwang/rf/rfh.so: undefined symbol: _gfortran_allocate
On Unix,
R CMD SHLIB rfh.f
R
> dyn.load("rfh.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library '/home/zwang/rf/rfh.so':
ld.so.1: /usr/local/R-2.3.0/lib/R/bin/exec/R: fatal: relocation error:
file /home/zwang/rf/rfh.so: symbol __f90_allocate2: referenced symbol
not found
More information about the R-help
mailing list