Error linking Boost with CMake

后端 未结 2 1719
無奈伤痛
無奈伤痛 2020-12-22 03:43

I am using CLion on OS X 10.10.5 (Yosemite) and trying to use the logging boost (1.58.0) library.

I installed boost using brew install boost. I checked

2条回答
  •  天涯浪人
    2020-12-22 03:57

    You have to set #define BOOST_LOG_DYN_LINK 1, this can be done with cmake using add_definitions(-DBOOST_LOG_DYN_LINK=1).

提交回复
热议问题