[Rcpp-devel] Patch for Reference Class warnings

Dirk Eddelbuettel edd at debian.org
Fri Oct 29 00:35:23 CEST 2010


On 28 October 2010 at 09:29, romain at r-enthusiasts.com wrote:
| I thought this has been fixed last week. Can you confirm you get the same warnings from the svn version. 

Indeed -- works fine for me using current SVN along with Ubuntu 10.10 (where
g++ is g++-4., g++-4.5 available as well): 

  ~/tmp$ PKG_CXXFLAGS=`r -e'Rcpp:::CxxFlags()'` R CMD SHLIB world.cpp
  g++ -I/usr/share/R/include     -I/usr/local/lib/R/site-library/Rcpp/include -fpic  -g0 -O3 -Wall -pipe -c world.cpp -o world.o
  g++ -shared -o world.so world.o -L/usr/lib64/R/lib -lR
  ~/tmp$ rm world.o world.so   
  ~/tmp$ editor ~/.R/Makevars   # to pick g++-4.5
  ~/tmp$ PKG_CXXFLAGS=`r -e'Rcpp:::CxxFlags()'` R CMD SHLIB world.cpp
  /usr/bin/g++-4.5 -I/usr/share/R/include     -I/usr/local/lib/R/site-library/Rcpp/include -fpic  -g0 -O3 -Wall -pipe -c world.cpp -o world.o
  g++ -shared -o world.so world.o -L/usr/lib64/R/lib -lR
  ~/tmp$

No warning, and certainly no failures.

Dirk

-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com


More information about the Rcpp-devel mailing list