[Rcpp-devel] error Rcpp::binding_not_found and stack overflow
Falk Schramm
Falk.Schramm at mailbox.tu-dresden.de
Tue Jan 31 10:06:07 CET 2012
Hello,
I'm actually just trying to start RInside.
My Problem:
The creation of the embedded R instance is not in the main method.
And the C++ is started by Java with a so called JNI Wrapper.
C++ creates the library for the Java code.
It's a big project and unfortunately I didn't found how to get argc and
argv, yet. (I'm
just responsible for the connection of C++ an R.)
So I tried to immitate the argc and argv with just 1 parameter.
char path[]="";
char *argv[0]={path};
RInside R(1, argv);
In Eclipse only with C++ with the StatET Plugin it doesn't matter which
parameter i give
to RInside, it starts and works also in a seperate function.
But maybe just because of the preferences in eclipse.
So I tried this in the project with Java.
The compilation of the C++ Library works fine but if I try to call the
function (with
Java) where R should be started there is the following error:
C stack usage is too close to the limit
C stack usage is too close to the limit
terminate called after throwing an instance of 'Rcpp::binding_not_found'
what(): binding not found '.AutoEnv'
In general I'm trying to understand where exactly is the error.
I think that the Rcpp an RInside libraries should be there, otherwise
there would be
errors during C++ compiling.
So maybe it is the parameter of RInside?
Greetings
Falk Schramm
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
More information about the Rcpp-devel
mailing list