[Rd] cross-compiling + expm1
jonathan.taylor at stanford.edu
Sun Jun 27 21:57:47 CEST 2004
Just joined this mailing list -- not sure if this is the right list to
send this question, but I have a question about cross-compiling R. I am
working with R-1.9.1.tgz.
It may just be with my version of mingw32, but it seems that expm1 is
not defined, so I tried to ensure that HAVE_EXPM1 was #undef'ed before
cross-compiling. The problem is that, in <include/Rmath.h> if it is
#undef'ed it is then #define'd as 1, meaning that the line where expm1
is declared automatically not included. I had similar problems with
logpq, but after changing Rmath.h cross-compiling was straightforward.
My question is: is this a "bug" in Rmath.h with respect to expm1 and
logp1? If so, how would you cross-compile, or even compile, if you
don't have expm1 or logp1?
More information about the R-devel