[Rcpp-devel] Compiling RcppArmadillo, SVN version 1919
Douglas Bates
bates at stat.wisc.edu
Thu Aug 5 18:00:28 CEST 2010
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.
More information about the Rcpp-devel
mailing list