[CI] Test C API demo (#6159)

* Fix CMake install config to use dependencies

* [CI] Test C API demo

* Explicitly cast num_feature, to avoid warning in Linux
This commit is contained in:
Philip Hyunsu Cho
2020-09-25 14:49:01 -07:00
committed by GitHub
parent bd2b1eabd0
commit 2c4dedb7a0
5 changed files with 65 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ int main(int argc, char** argv) {
bst_ulong num_feature = 0;
safe_xgboost(XGBoosterGetNumFeature(booster, &num_feature));
printf("num_feature: %llu\n", num_feature);
printf("num_feature: %lu\n", (unsigned long)(num_feature));
// predict
bst_ulong out_len = 0;