Hi,

I'm able to compile 2013-01-05-r-function-from-c++.cpp to the .so
file. But I'm not able to call "callFunction" in R does anybody know
what the correct way is to call R functions in C++? Thanks.

> dyn.load('2013-01-05-r-function-from-c++.so')
> x <- rnorm(1e5)
> .Call('callFunction', x, fivenum)
Error in .Call("callFunction", x, fivenum) :
  C symbol name "callFunction" not in load table
> callFunction(x, fivenum)
Error: could not find function "callFunction"

-- 
Regards,
Peng
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to