-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
Description
Compiling code that uses boost::process::child
with a custom on_setup
handler with MSVC 16.8 throws the following errors (boost 1.74):
[build] boost/process/detail/windows/handles.hpp(142): error C2039: "GetHandleInformation" ist kein Member von "boost::winapi".
[build] boost/process/detail/windows/handles.hpp(142): note: Diese Diagnose trat in der vom Compiler generierten Funktion "void boost::process::detail::windows::limit_handles_::on_setup(Executor &) const" auf.
[build] boost/process/detail/windows/handles.hpp(143): error C2039: "HANDLE_FLAG_INHERIT_" ist kein Member von "boost::winapi".
[build] boost/winapi/dll.hpp(190): note: Siehe Deklaration von "boost::winapi"
[build] boost/process/detail/windows/handles.hpp(143): note: Diese Diagnose trat in der vom Compiler generierten Funktion "void boost::process::detail::windows::limit_handles_::on_setup(Executor &) const" auf.
[build] boost/process/detail/windows/handles.hpp(154): error C2039: "SetHandleInformation" ist kein Member von "boost::winapi".
[build] boost/winapi/dll.hpp(190): note: Siehe Deklaration von "boost::winapi"
The missing functions are declared in #include <boost/winapi/handle_info.hpp>
. Adding that include to boost/process/detail/windows/handles.hpp
solves the problem.
Trigve, AeroStun and oxygene
Metadata
Metadata
Assignees
Labels
No labels