[Rcpp-devel] portable -Wall option in $PKG_CPPFLAGS

Dirk Eddelbuettel edd at debian.org
Thu Aug 30 20:04:55 CEST 2012

On 29 August 2012 at 20:52, Peng Yu wrote:
| Hi,
| I use -Wall option in $PKG_CPPFLAGS.
| PKG_CPPFLAGS=`echo "Rcpp:::CxxFlags()"|R --vanilla --slave` -Wall -I.
| But when I check the package, it says
| * checking for portable compilation flags in Makevars ... WARNING
| Non-portable flags in variable ‘PKG_CPPFLAGS’:
|   -Wall
| Does anybody know an option to display warnings that are portable? Thanks!

Do not set in there. It will trigger the warning.

Set it in ~/.R/Makevars --- see 'Writing R Extensions' for details.


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

More information about the Rcpp-devel mailing list