From: Joel Bremson <joel3000_at_gmail.com>

Date: Wed 18 May 2005 - 16:35:37 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 18 16:40:44 2005

Date: Wed 18 May 2005 - 16:35:37 EST

Here is the test I tried:

A little fortran 95 subroutine:

subroutine allloc()

real, dimension(:, :), allocatable :: a

integer :: n

n = 10

allocate(a(n,n+1))

end

I then compiled:

*>g95 -c allloc.f
*

>R CMD SHLIB allloc.o

Here is what happens when I try to dyn.load it in R 2.1.0

*> dyn.load("allloc.so")
*

Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library '/home/jbremson/dev/f_code/allloc.so':
/home/jbremson/dev/f_code/allloc.so: undefined symbol: _g95_filename

Is there any way to deal with this?

Is it somehow possible to reach the fortran 95 through C and avoid this whole problem?

Regards,

Joel Bremson

UC Davis

[[alternative HTML version deleted]]

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed May 18 16:40:44 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:50 EST
*