Re: [R] Calling Windows DLL using .C; function name not known but in exports.

2012-01-22 Thread Alex van der Spek
Thanks Duncan, I will try gcc. In the mean time is.loaded('planckwR',type='C') returns True and getNativeSymbolInfo('plankwR') returns that function name and a pointer to it plus some other info. It seems the function is loaded? Why does the call .C('planckwR',...) not recognize it? Alex

Re: [R] Calling Windows DLL using .C; function name not known but in exports.

2012-01-21 Thread Duncan Murdoch
On 12-01-20 10:05 AM, Alex van der Spek wrote: First time ever that I try to call subroutines in a Win DLL using R. Have done this before using VBA and Python. The C code's function argument list contains only double pointers (double *x). The function is declared void, the output value is one of

[R] Calling Windows DLL using .C; function name not known but in exports.

2012-01-20 Thread Alex van der Spek
First time ever that I try to call subroutines in a Win DLL using R. Have done this before using VBA and Python. The C code's function argument list contains only double pointers (double *x). The function is declared void, the output value is one of the arguments. C calling sequence is used.