I\'m just getting started with Boost for the first time, details:
I came to the question via searching for the linker error plus CMAKE, so I'm adding this comment here in case anyone else finds this question the same way.
It turns out that the linker error in my case was due to an errant:
add_definitions(-DBOOST_ALL_DYN_LINK)
in the CMakeLists.txt
, which is fine for Unix, but not Windows in my case. The solution is not use that define on Windows.