[Rd] unable to compile mgcv

William Dunlap wdunlap at tibco.com
Thu Oct 29 00:20:18 CET 2009


> -----Original Message-----
> From: Chuck White [mailto:chuckwhite8 at charter.net] 
> Sent: Wednesday, October 28, 2009 3:47 PM
> To: r-devel at r-project.org; William Dunlap
> Subject: RE: [Rd] unable to compile mgcv
> 
> Thanks for your response.  Can you please point me to the 
> make file where I would make this change. Thanks.

If you untar src/library/Recommended/mgcv.tgz (sp?)
this file will be in mgcv/src.  I'm not sure of the
best way to take care of it on AIX.  It may be possible
to #undef TRUE in include/R.h.  The AIX system includes
define it in many places, the most prominent of which
is in types.h.

If you cannot generally #undef TRUE in a global
R include file then you will have to edit the C or h files
in mgcv.

> 
> ---- William Dunlap <wdunlap at tibco.com> wrote: 
> > The first offending line in gdc.c is
> >     294   int *pivot,i,TRUE=1,j;
> > and TRUE must be #defined in some AIX
> > include file.  Change it to true or
> > add #undef TRUE prior to its use and it
> > may compile.
> > 
> > Bill Dunlap
> > Spotfire, TIBCO Software
> > wdunlap tibco.com  
> 
> 



More information about the R-devel mailing list