[R] trouble using R Mathlib as standalone
A.J. Rossini
rossini at blindglobe.net
Tue Jan 15 18:22:42 CET 2002
>>>>> "FM" == Faheem Mitha <faheem at email.unc.edu> writes:
FM> 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.
FM> Ok. But...
FM> 1) I would like to use -pedantic to catch non-portable C++
FM> constructions (I'm a beginner in C/C++).
So construct 2 makefile targets (or do the equivalent):
compile-with-pedantic
and
compile-without-pedantic
That way you'll get the other errors you are looking for, while still
being able to compile.
FM> Is there no way to get these to play nice together? How about
FM> a wrapper or something. I've no idea, short of something crude
FM> like commenting out the declaration of log1p in Rmath.h, which
FM> might cause other problems.
I don't have a good answer, short of the hack I suggested.
best,
-tony
--
A.J. Rossini Rsrch. Asst. Prof. of Biostatistics
U. of Washington Biostatistics rossini at u.washington.edu
FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org
-------------- http://software.biostat.washington.edu/ ----------------
FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email
UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX
--- I'm 40% time until March 1st. Try email the other 3 days.... -----
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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