在做了一些研究之后,部分是在 Stack Overflow 上,我决定尝试 Boost.Log Andrey Semashev 的图书馆。
不幸的是,要构建 Boost.Log 库 I have to place it in the Boost source tree并编译,因为它是 Boost 的一部分。这对我来说是个障碍,因为我的建筑配置已经有些复杂了。 我想独立构建 Boost.Log。
我找到了 interesting thread on Boost.Log forum ,但这种方法对我不起作用。
最佳答案
不使用 Boost.Log,我建议您考虑 cpplog:https://github.com/andrew-d/cpplog
这是一个基于 Google 日志库的仅 header 库。
关于c++ - 如何独立编译 Boost.Log,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9610462/