R-alpha: thoughts on batch and fortran
Luke Tierney
luke@stat.umn.edu
Thu, 21 Aug 1997 10:34:08 -0500 (CDT)
> We've been talking about this a bit - its a general problem.
> I will look and see if we can package the f2c library as an R library.
> Then we could say
> library("f2c")
> library("carma")
> I don't know if this will work - i.e. whether functions in carma.so
> will "see" functions in f2c.so. If I get a second in the next couple of
> days I will try the experiment.
> Ross
In UNIX you have two choices. You do it this way, or you can establish
the connection to dependent libraries at link time by your systems
variant of
ld -shared -o carma carma.o -lf2c
when you create your carma shared library and then
library("carma")
within R. In either case libf2c.so should only be loaded once. On
NT/Win95 I *think* you essentially only have the second choice. I
don't believe a DLL can have any undefined symbols that are resolved
into the running executable or other DLL's ar run time (I'm not
certain about this but is would be easy to check). If I'm right, it
would probably be best to recommend doing things the second way on all
systems just for consistency. I don't know how the Mac shared library
manager works, but I suspect it it more like the way I think NT/Win95
work.
luke
--
Luke Tierney
University of Minnesota Phone: 612-625-7843
School of Statistics Fax: 612-624-8868
206 Church Street email: luke@stat.umn.edu
Minneapolis, MN 55455 USA WWW: http://www.stat.umn.edu
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel 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-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-