You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I do this, I get the following compile errors in Visual Studio 2022...
boost\process\v2\detail\utf8.hpp(28,47): error C2491: 'boost::process::v2::detail::conv_string': definition of dllimport function not allowed
boost\asio\detail\socket_types.hpp(24,1): fatal error C1189: #error: WinSock.h has already been included
Any ideas why I'm getting these errors? I've tried different things from previous issues posted but no success so far.
I'm using VS 2022 64-bit running on Windows 11. I'm also using boost::process version 1.86 built with vcpkg
The text was updated successfully, but these errors were encountered:
The first was a bug, that's now fixed (for the upcoming 1.87 release). The 1.87 beta is already out and I think the release will be on December 4th. I don't know when either will land in vcpkg.
I'll probably deprecate v1 in the release after that (March).
The second issue seems to have some inclusion order issues caused by some odd inclusion order. Try including boost/asio.hpp before anything else. For a less blunt solution I'd need to know what you include beforehand (most like the windows.h or WinSock.h is included from somewhere other than asio).
I'm upgrading my application from using
#include <boost/process.hpp>
to using the new boost process v2 stuff by using
#include <boost/process/v2.hpp>
When I do this, I get the following compile errors in Visual Studio 2022...
boost\process\v2\detail\utf8.hpp(28,47): error C2491: 'boost::process::v2::detail::conv_string': definition of dllimport function not allowed
boost\asio\detail\socket_types.hpp(24,1): fatal error C1189: #error: WinSock.h has already been included
Any ideas why I'm getting these errors? I've tried different things from previous issues posted but no success so far.
I'm using VS 2022 64-bit running on Windows 11. I'm also using boost::process version 1.86 built with vcpkg
The text was updated successfully, but these errors were encountered: