[R] R/C interface
estuart@fas.harvard.edu
estuart at fas.harvard.edu
Wed Jul 17 13:52:57 CEST 2002
Hi,
I am trying to use the R/C interface on a Unix system that unfortunately does
not have the gnu C compiler and am having trouble accessing the math functions
from math.h.
To compile a C program with math functions on this system, the following
command is used (and the order is important: the /usr/lib/libm.a statement must
come at the end of the command):
"cc program.c /usr/lib/libm.a"
I am having trouble getting R to compile the C programs with this extra command
(/usr/lib/libm.a). I have tried the CFLAGS option, and have looked at the
scripts for the COMPILE and SHLIB commands but have not seen anything obvious
(and I am not very familiar with Unix and C in general).
Is there some way I can get R to use this when it does the C compiling in R CMD
COMPILE and R CMD SHLIB?
Thank you in advance for any help!
Elizabeth Stuart
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list