[R] I/O fortran instructions and dyn.load

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

From: Gilles GUILLOT (gilles.guillot@inapg.inra.fr)
Date: Thu 27 May 2004 - 02:04:39 EST


Message-id: <200405261604.39795.gilles.guillot@inapg.inra.fr>

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

______________________________________________ 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:12 EST