Re: [R] Error in Calling C++ function from R!!!

2006-11-24 Thread Barry Rowlingson
>>product<-.C("prodgdot",myx=x,muy=y,myn=NROW(x),myoutput=as.double(0)) > > Error in .C("prodgdot", myx = x, muy = y, myn = NROW(x), myoutput = > as.double(0)) : > C symbol name "prodgdot" not in load table > > > Does anyone know what is the problem? C++ name mangling? http://c

[R] Error in Calling C++ function from R!!!

2006-11-24 Thread gsmatos1
Hello, I tried to call an external function of R from the following code in C++: void prodgdot(double *x, double *y, int *n, double *output) { int i; *output=0; for (i=0;i<*n;i++) { *output+=x[i]*y[i]; } }