Displaying 1 result from an estimated 1 matches for "myoth".
Did you mean:
moth
1999 Sep 14
1
dyn.load
...brairies "myfct.so" and "otherfct.so", where
"myfct.so" is calling functions of "otherfct.so",
and I want dyn.load() each of it, without generating
a unique librarie. For exemple :
myfct.c :
void myfct(double *x, double *y)
{
otherfct(x);
*y=(*x)+1.0;
}
myoth.c :
void otherfct( double *x )
{
*x=99.;
}
I create the two libraries as following :
~/R/testR$ R SHLIB myfct.c
gcc -g -O2 -fpic -I/usr/local/lib/R/include -c myfct.c -o myfct.o
ld -shared -o myfct.so myfct.o
~/R/testR$ R SHLIB myother.c
gcc -g -O2 -fpic -I/usr/local/lib/R/include -c myother.c...