[R] trouble using R Mathlib as standalone

Faheem Mitha faheem at email.unc.edu
Tue Jan 15 18:03:44 CET 2002



On Tue, 15 Jan 2002, Prof Brian Ripley wrote:

> You are using this in C++ code, not in C code. `Actually', I don't think
> it is a good idea to include C headers in C++ code with -pedantic.  C is
> not required to pass C++ -pedantic.

Ok. But...

1) I would like to use -pedantic to catch non-portable C++ constructions
(I'm a beginner in C/C++).

2) I need to use the R mathlib library, and don't know of any alternative,
short of writing the functions myself.

Is there no way to get these to play nice together? How about a wrapper or
something. I've no idea, short of something crude like commenting out the
declaration of log1p in Rmath.h, which might cause other problems.

                                       Sincerely, Faheem Mitha.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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