1

Closed

boost & VS2015

description

Hi,
First time using boost as nuget package.
got this compiler error
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

Am I doing something wrong or it is something in boost which was broken in VS2015?
Closed Aug 14, 2015 at 8:15 PM by sergey_shandar

comments

kreuzerkrieg wrote Aug 11, 2015 at 6:59 AM

ah, ok, it was BOOST_ALL_DYN_LINK in property sheet that interfered with package which links statically

sergey_shandar wrote Aug 14, 2015 at 8:14 PM

You may also consider to use precompiled packages: http://getboost.codeplex.com/releases/view/616478

In particular: https://www.nuget.org/packages/boost_thread-vc140/1.59.0-b1

I'm going to release 1.59.0 for VS 2015 soon.