add link tag

This commit is contained in:
tqchen
2016-02-28 09:44:11 -08:00
parent 26c87ec6e7
commit c7d53aecc3
2 changed files with 15 additions and 0 deletions

View File

@@ -132,4 +132,15 @@ RABIT_DLL void RabitCheckPoint(const char *global_model,
*/
RABIT_DLL int RabitVersionNumber();
/*!
* \brief a Dummy function,
* used to cause force link of C API into the DLL.
* \code
* // force link rabit C API library.
* static int must_link_rabit_ = RabitLinkTag();
* \endcode
*/
RABIT_DLL int RabitLinkTag();
#endif // RABIT_C_API_H_