Search code examples
c++boostvisual-studio-2015

Boost nuget package for VS2015


It fails with

1>\solutions\packages\boost_thread.1.58.0.0\lib\native\src\win32\thread.cpp(1007): error C2491: 'boost::on_process_enter': definition of dllimport function not allowed

Did I miss something or something went broken in boost (or nuget package) for VS2015?


Solution

  • Previous definition of BOOST_ALL_DYN_LINK (in property sheet) interfered with the nuget package which (apparently) links statically

    2020 update: just switch to vcpkg, really