[R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Pierre Lafaye de Micheaux
Dear all, I created a new version of the package IndependenceTests where I call some C and Fortran functions (using the .C() or .Fortran() interface). It works perfectly under Linux, with gcc. No problem with R CMD check. I would like to upload this package on the CRAN. But when I first tried t

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Dirk Eddelbuettel
On 13 November 2015 at 17:24, Pierre Lafaye de Micheaux wrote: | might help me solve the problem? If possible, I would like to avoid | invest too much time using the new .Call() interface because I am quite | familiar with the old .C(). If you pay attention to posts in recent years of the R-dev

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Roebuck,Paul L
Too bad you couldn't just use C++ std::complex, but that's a no-go if your function needs C linkage. suggests MS-specific topic, but answers explain more. Have you looked at RCpp package? ___

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Duncan Murdoch
On 13/11/2015 11:24 AM, Pierre Lafaye de Micheaux wrote: Dear all, I created a new version of the package IndependenceTests where I call some C and Fortran functions (using the .C() or .Fortran() interface). It works perfectly under Linux, with gcc. No problem with R CMD check. I would like to u

Re: [R-pkg-devel] Problem (with complex.h?) under Microsoft Windows

2015-11-13 Thread Dirk Eddelbuettel
On 13 November 2015 at 20:24, Roebuck,Paul L wrote: | Too bad you couldn't just use C++ std::complex, but that's a no-go if your function needs C linkage. | | | suggests MS-specific topic, but answers explain mo