[R] I/O fortran instructions and dyn.load
Gilles GUILLOT
gilles.guillot at inapg.inra.fr
Wed May 26 18:04:39 CEST 2004
I have the following Fortran code
subroutine sub(path)
character*100 path
open(10,file=path)
end
saved as test.f
which I compile with
g77 -c test.f
then I make the shared libary in R (Version 1.9.0) with
system("R CMD SHLIB test.o")
so far, everything OK.
But
dyn.load("test.so")
returns the following error message:
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library "test.so":
test.so: undefined symbol: f_open
I get similar error messages with r/w Fortran instructions like
write(*,*) , read(*,*)
I used to use such programs on my computer under mandrake linux 10.
The problem reported occurs on a new server operating under
another linux distrib (debian).
Thanks in advance for any help,
Gilles
--
_____________________________________________________________________
Gilles GUILLOT
INRA -Département Mathématiques et Informatique Appliquées
Unité de Mixte de Recherche
INRA - INAPG - ENGREF
Institut National Agronomique de Paris-Grignon
16 rue Claude Bernard
75231 Paris cedex 5
Aile Claude Bernard
Niveau cours +3 étages
tel : +33 (0)1 44 08 72 71
fax : +33 (0)1 44 08 16 66
http://www.inapg.fr/ens_rech/mathinfo/personnel/guillot/welcome.html
More information about the R-help
mailing list