<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm have what's probably a trivial &amp;| silly problem trying to access
a c-function in a shared
<br>library ( R 0.64, under redhat linux 5.2).
<p>&nbsp;&nbsp;&nbsp; R COMPILE rctest.c
<br>&nbsp;&nbsp;&nbsp; R SHLIB -o libRC.so rctest.o
<p>produce a reasonable looking shared library ('nm libRC.so' shows that
the function 'rctest' is present).
<p>In R, the command
<p>&nbsp;&nbsp;&nbsp; dyn.load("/fullpathname/libRC.so")
<p>returns without an error.&nbsp; However, I'm unable to access the function.&nbsp;
E.g.
<p>&nbsp;&nbsp;&nbsp; is.loaded(symbol.C("rctest"))
<p>yields FALSE.
<br>&nbsp;
<br>&nbsp;&nbsp;&nbsp; .C("rctest",x)
<p>yields "Error in .C("rctest", x) : C/Fortran function not in load table"
<p>There must be something I'm leaving out, but after searching the documentation
and
<br>help archive, I'm stuck.&nbsp; Does the .so have to be in an R package
(if so, where)?
<p>Thanks,
<pre>-------------------
Barnet Wagman

wagman@enteract.com
773-645-8369

1361 N. Hoyne
Chicago, IL 60622
--------------------</pre>
&nbsp;</html>