[R] trouble using R Mathlib as standalone
Prof Brian Ripley
ripley at stats.ox.ac.uk
Tue Jan 15 08:49:18 CET 2002
On Mon, 14 Jan 2002, Dirk Eddelbuettel wrote:
>
> "Faheem" == Faheem Mitha <faheem at email.unc.edu> writes:
> Faheem> OK, but what is the best way of making the warning go away? I
> Faheem> would like to keep -pedantic. Shall I comment out the declation of
>
> Dunno. I never use more than -Wall which, from my experience, catches
> everything that is reasonable.
-pedantic can be very helpful in catching non-ISO-C code. Quite often
people have code that compiles on their system (usually gcc) but not on a
C-only compiler. The use of C++ comments is the most common, but we've
met others. So it's been helpful in achieving portability of R and
contributed packages.
One nuisance is that -pedantic warns about use of legal features of C99,
including in the R sources (where they are inside #ifdef blocks).
> Faheem> log1p in Rmath.h Line 520)? Is that harmless? In any case, I think
> Faheem> this qualifies as a minor bug.
>
> Disagree. Remember that you are not getting an error, all you are getting is
> a warning message. Maybe a nuisance, but not a bug.
I think we need to consider renaming the R version of log1p to avoid
possible problems elsewhere. It is not a bug, as it does need to be
declared in Rmath.h on some ISO C systems. It just happens that both
glibc and MM used the same name for the same extension.
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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