Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Marvin Wright
Thanks, that helped. However, a user with gcc < 4.7 will still get cryptic errors. I had another idea: I created a file src/AAA_check_cpp11.cpp, checking the preprocessor directive “__cplusplus”, see https://github.com/mnwright/ranger/blob/master/ranger-r-package/ranger/src/AAA_check_cpp11.cpp

Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Dirk Eddelbuettel
On 16 November 2015 at 16:45, Marvin Wright wrote: | Thanks, that helped. However, a user with gcc < 4.7 will still get cryptic | errors. | | I had another idea: I created a file src/AAA_check_cpp11.cpp, checking the | preprocessor directive “__cplusplus”, see https://github.com/mnwright/ranger/

Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Dirk Eddelbuettel
On 16 November 2015 at 13:07, Marvin Wright wrote: | I would like to check for C++11 support in a package. The package requires gcc >= 4.7 or clang >= 3.0. Windows is handled differently in Makevars.win. I tried two approaches in Makevars so far, but both give warnings in CRAN checks. | | Appr

Re: [R-pkg-devel] Checking for C++11

2015-11-16 Thread Duncan Murdoch
On 16/11/2015 7:07 AM, Marvin Wright wrote: Dear all, I would like to check for C++11 support in a package. The package requires gcc >= 4.7 or clang >= 3.0. Windows is handled differently in Makevars.win. I tried two approaches in Makevars so far, but both give warnings in CRAN checks. Approa

[R-pkg-devel] Checking for C++11

2015-11-16 Thread Marvin Wright
Dear all, I would like to check for C++11 support in a package. The package requires gcc >= 4.7 or clang >= 3.0. Windows is handled differently in Makevars.win. I tried two approaches in Makevars so far, but both give warnings in CRAN checks. Approach 1: ## Check for gcc >= 4.7 ifeq ($(shell