Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在最新的 Boost 1.54 版本中,我看到Boost.Log库出现了。当我编译整个 Boost 1.54 时,我看到它为 Log 库生成了 2 个二进制文件:
libboost_log_setup.a图书馆的原因是什么?我什么时候应该链接它?
libboost_log_setup.a
libboost_log_setup 包含对日志记录的扩展支持。
例如,在您的日志记录活动中使用格式化程序时,您将需要此库。
顺便说一句,请注意您需要在 libboost_log 之前链接 libboost_log_setup,因为第一个取决于最后一个。换句话说,您需要在库设置中将 libboost_log_setup 放在 libboost_log 之前。