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 | e...@debian.org ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel