Re: [R] trouble using R Mathlib as standalone

About this list Date view Thread view Subject view Author view Attachment view

From: A.J. Rossini (rossini@blindglobe.net)
Date: Wed 16 Jan 2002 - 04:22:42 EST


Message-id: <87n0zfzfz1.fsf@jeeves.blindglobe.net>


>>>>> "FM" == Faheem Mitha <faheem@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@u.washington.edu	
FHCRC/SCHARP/HIV Vaccine Trials Net	rossini@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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:56:54 EST