Hi Martin,
Sorry I was stupid. Indeed, I named the file tom.c instead of tmp.cc.
Now with the right extension, it works with the 'extern C' piece of code.
However, for your (ii) point, this shouldn't be related to the omission
of 'extern C' but to the fact that the shared library is not
Mathieu,
I do not understand what you mean in your email.
I am only interested in the cause of the valgrind
message in
.Call(XXX)
[1] 1
nd - 3
solve(diag(nd) , as.vector(1:nd))
[1] 1 2 3
.Call(XXX)
==25734== Conditional jump or move depends on uninitialised value(s)
==25734==at
Hi Martin,
I wasn't able to compile your files. Replacing extern C SEXP XXX();
by SEXP XXX(); solve the issue and I got no message from valgrind -
I'm not sure this is what you really want to do though.
I hope this might help.
Cheers,
Mathieu
schlat...@math.uni-goettingen.de a écrit :
Hi,