I mis-stated there, with the -std flag. With gcc 4.6.3 and -std=c++0x the compilation works just fine. With both clang versions and and either c++0x or c++11 the errorsare encountered.
I don't have a later gcc installed to test with the -std=c++11. (Yet.) On Mon, Nov 19, 2012 at 11:39 AM, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 19 November 2012 at 11:22, Thell Fowler wrote: > | First:: Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based > on LLVM 3.0) > || > | > | > | >> setting environment variables: > | PKG_LIBS = -lmpfr -lgmp -L/home/thell/R/library/Rcpp/lib -lRcpp > -Wl,-rpath,/home/thell/R/library/Rcpp/lib > | PKG_CPPFLAGS = -std=c++11 > > Romain may have been too subtle the other day: This is NOT currently > supported. We have not turned that flag in quite some time as CRAN won't > let > us use it. If you really it, expect to do some work on the Rcpp source. > > | The code compiles and works (the warnings are expected for now) using > g++. > > Could you confirm that it also works with clang with the c++11 flag? > > Dirk > > -- > Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com > -- Sincerely, Thell
_______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel