Message-ID: <4C60EBEC.50909@r-enthusiasts.com>
Date: 2010-08-10T06:04:28Z
From: Romain Francois
Subject: [Rcpp-devel] Compiling RcppArmadillo, SVN version 1919
In-Reply-To: <4C5AE284.1000609@r-enthusiasts.com>
Le 05/08/10 18:10, Romain Francois a ?crit :
> Le 05/08/10 18:00, Douglas Bates a ?crit :
>> I get a compilation error of
>>
>> g++ -I/usr/share/R/include
>> -I"/home/bates/R/x86_64-pc-linux-gnu-library/2.11/Rcpp/include"
>> -I../inst/include -fpic -g -O3 -pipe -Wall -pedantic -c
>> RcppArmadillo.cpp -o RcppArmadillo.o
>> In file included from ../inst/include/armadillo:27,
>> from ../inst/include/RcppArmadilloForward.h:29,
>> from ../inst/include/RcppArmadillo.h:25,
>> from RcppArmadillo.cpp:22:
>> /usr/include/c++/4.4/fstream:624: error: ?Rf_ftrunc? is not a member
>> of ?std::ios_base?
>> /usr/include/c++/4.4/fstream:697: error: ?Rf_ftrunc? is not a member
>> of ?std::ios_base?
>> make: *** [RcppArmadillo.o] Error 1
>> ERROR: compilation failed for package ?RcppArmadillo?
>>
>> (This is using r-base in Ubuntu 10.04 x86_64 and the same SVN version
>> of Rcpp.)
>>
>> It appears to be a name clash. The include file Rmath.h redefines
>> ftrunc as Rf_ftrunc.
>
> Good catch. I just pulled in Rmath.h (in RcppCommon.h) today for dpois
> and dbinom
Now fixed in rev 1959.
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://bit.ly/aAyra4 : highlight 0.2-2
|- http://bit.ly/94EBKx : inline 0.3.6
`- http://bit.ly/aryfrk : useR! 2010