Skip to content

R freeze when loading dll with dyn.load

2 messages · Morel Didier, Simon Urbanek

#
On Mar 17, 2009, at 8:24 , Morel Didier wrote:

            
This is not a valid C code. What you may have possibly meant is

void sqr(double *x, double *x2) {
  *x2 = *x * *x;
}

 > dyn.load("tt.dll")
 > .C("sqr",4,0)
[[1]]
[1] 4

[[2]]
[1] 16

Cheers,
S
You should be using MinGW - I don't think anything else is directly  
supported (see R Windows FAQ).

Cheers,
S