Skip to content
Back to formatted view

Raw Message

Message-ID: <3B50674D.C35C0904@warnes.net>
Date: 2001-07-14T15:37:49Z
From: Gregory R. Warnes
Subject: Calling rand_unif() from fortran

What is the necesary incantation to call rand_unif() from a fortran
routine?

Just inserting rand_unif() into the fortran code compiles OK, but won't
dyn.load():


> dyn.load("forest.so")
Error in dyn.load(x, as.logical(local), as.logical(now)) : 
	unable to load shared library "/home/warnes/R/forest/forest.so":
  /home/warnes/R/forest/forest.so: undefined symbol: unif_rand__


Do I have to write a bit of C code to "wrap" the call using F77_SUB?

-Greg
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._