From jonathan.taylor at stanford.edu  Sun Jun 27 21:57:47 2004
From: jonathan.taylor at stanford.edu (Jonathan Taylor)
Date: Sun Jun 27 21:57:55 2004
Subject: [Rd] cross-compiling + expm1
Message-ID: <42EB7F10-C874-11D8-9ED5-000A95DA50E2@stanford.edu>

Hello all,
	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?

Thanks,

Jonathan Taylor


[Rd] cross-compiling + expm1
Jonathan Taylor