diff --git a/R-package/src/xgboost_R.cc b/R-package/src/xgboost_R.cc index 0e7234a18708..68a45ba96780 100644 --- a/R-package/src/xgboost_R.cc +++ b/R-package/src/xgboost_R.cc @@ -27,6 +27,10 @@ #include "./xgboost_R.h" // Must follow other includes. +#ifdef _MSC_VER +#error "Compilation of R package with MSVC is not supported due to issues handling R headers" +#endif + namespace { /* Note: this class is used as a throwable exception.