Le 05/08/10 18:00, Douglas Bates a écrit :
I get a compilation error ofg++ -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
Romain -- 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 _______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
