[R] linking other C++ libraries
sam.kemp2 at ntlworld.com
Thu Feb 26 09:55:31 CET 2004
I have written a little C++ program, which uses a third party library
called ANN (approximate nearest neighbours)....
I have tried R CMD SHLIB ann.h myProgram.cc, although this compiles when
I load it into R I get the following message..
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library "/home/sekemp/ann_0.2/GammaTest.so":
/home/sekemp/ann_0.2/GammaTest.so: undefined symbol:
I get the same error when I dyn.load the myProgram.so aswell.
There is nothing wrong with the ann library as I have used it directly
in C++ using the compiler-linker thingy....
g++ myProgram.cc -I/home/sekemp/ann_0.2/include
Does anyone have any ideas?
More information about the R-help