Displaying 1 result from an estimated 1 matches for "libobtest2".
2013 Mar 25
1
using openbabel plugins in R
...out
search result, either 0 or an address
return R_NilValue;
}
compile:
g++ -I/usr/include/openbabel-2.0 -I/usr/share/R/include -fpic -c
obtest2.cc -o obtest2.o
g++ -o obtest2 obtest2.o -fpic -lopenbabel
-lR # Executable
g++ -shared -o libobtest2.so obtest2.o -fpic -lopenbabel -lR # R
library
Run executable:
$ ./obtest2
format: 0x7f1858275d20 #found some result, this is what I expect
Run in R:
R>dyn.load("libobtest2.so")
R>.Call("test")
format: 0 # the format was...