Re: [R] Problem with rcmd SHLIB

2010-03-11 Thread denise xifaras
Thank you Duncan, the paths were first so that wasn't the problem, but when I changed to the directory of the file and then typed rcmd SHLIB it did work, like you said. Great news. Best, Denise --- On Thu, 3/11/10, Duncan Murdoch wrote: From: Duncan Murdoch Subject: Re: [R] Problem

Re: [R] Problem with rcmd SHLIB

2010-03-11 Thread Duncan Murdoch
On 11/03/2010 10:57 AM, denise xifaras wrote: Hi all, I am trying to call a C function from R (version 2.10.1) on a windows machine. The C code is in a .c file, I have pasted the code below although I'm very confident that it does not contain any errors (it is not my code), but also, the prob

Re: [R] Problem with rcmd SHLIB

2010-03-11 Thread stephenb
I have never got it working with rcmd SHLIB. it is much easier to create a shared library separately with the C compiler and then load it with dyn.load the makefiles for SHLIB are quite big and going through them will give you a headache, so just use the flag for a dll when you compile. -- View

[R] Problem with rcmd SHLIB

2010-03-11 Thread denise xifaras
Hi all, I am trying to call a C function from R (version 2.10.1) on a windows machine. The C code is in a .c file, I have pasted the code below although I'm very confident that it does not contain any errors (it is not my code), but also, the problem that I have occurs with every .c file that I