<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I'm have what's probably a trivial &| silly problem trying to access
a c-function in a shared
<br>library ( R 0.64, under redhat linux 5.2).
<p> R COMPILE rctest.c
<br> 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> dyn.load("/fullpathname/libRC.so")
<p>returns without an error. However, I'm unable to access the function.
E.g.
<p> is.loaded(symbol.C("rctest"))
<p>yields FALSE.
<br>
<br> .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. 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>
</html>