[R-pkg-devel] Checking for C++11
Dirk Eddelbuettel
edd at debian.org
Mon Nov 16 16:53:52 CET 2015
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/
| blob/master/ranger-r-package/ranger/src/AAA_check_cpp11.cpp. This isn’t
| beautiful, but the error message is better and it’s fine on CRAN.
That is basically what autoconf is for. You can embed small programs in the
configure.ac -- that _is_ how header presence and linkability is tested.
I don't have a link handly but I can probably help (off-list) if needed.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the R-package-devel
mailing list