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
{{ message }}
Repository navigation
boost v1.71 - Program fails to compile after including header : <boost/process.hpp> #96
I dont't know if it is relatet to #92, but i can't compile the same source code with only the header included with boost 1.71.
In file included from W:/boost_1_71_0/boost/process/detail/windows/handles.hpp:11,
from W:/boost_1_71_0/boost/process/detail/used_handles.hpp:17,
from W:/boost_1_71_0/boost/process/detail/windows/async_in.hpp:20,
from W:/boost_1_71_0/boost/process/async.hpp:49,
from W:/boost_1_71_0/boost/process.hpp:23,
from X:\trunk\test\test_boost_process.cpp:1:
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:209:51: error: expected ')' before '*' token
typedef ::boost::winapi::NTSTATUS_ (__kernel_entry *nt_system_query_information_p )(
~ ^~
)
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:224:51: error: expected ')' before '*' token
typedef ::boost::winapi::NTSTATUS_ (__kernel_entry *nt_query_object_p )(
~ ^~
)
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp: In function 'boost::winapi::NTSTATUS_ boost::process
::detail::windows::workaround::nt_system_query_information(boost::process::detail::windows::workaround::SYSTEM_INFORMATI
ON_CLASS_, void*, boost::winapi::ULONG_, boost::winapi::PULONG_)':
W:/boost_1_71_0/boost/process/detail/windows/handle_workaround.hpp:240:12: error: 'nt_system_query_information_p' does n
ot name a type; did you mean 'nt_system_query_information'?
static nt_system_query_information_p f = reinterpret_cast<nt_system_query_information_p>(::boost::winapi::get_proc_
address(h, "NtQuerySystemInformation"));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nt_system_query_information
...
Activity
sinkingsugar commentedon Oct 16, 2019
Definitely a issue under MINGW, Small workaround for now: https://github.com/sinkingsugar/chainblocks/blob/5c6920d65daf22b169a3dfba9db63ef4f50814cd/src/core/blocks/process.cpp#L11
gibbontrothy commentedon Apr 2, 2020
It also works if you define:
So I just added this to my
CMakeLists.txtfile:Gei0r commentedon Apr 25, 2020
I also had to
#include <windows.h>myself.klemens-morgenstern commentedon Apr 27, 2020
Are all you guys using mingw? And does mingw work with boost.dll?
Gei0r commentedon May 5, 2020
Yeah, I'm using mingw64 installed through MSYS2.
Haven't tried boost.dll.
gibbontrothy commentedon Jun 1, 2020
I'm also using msys2/mingw64. I'm not sure what boost.dll means for msys2, but I do use static and dynamic linking.
build: Fix cross build for Windows with Boost Process
build: Fix cross build for Windows with Boost Process
Merge bitcoin/bitcoin#22348: build: Fix cross build for Windows with …
Merge bitcoin#22348: build: Fix cross build for Windows with Boost Pr…
3 remaining items
Merge bitcoin#22348: build: Fix cross build for Windows with Boost Pr…
Merge bitcoin/bitcoin#22348: build: Fix cross build for Windows with …
Merge bitcoin/bitcoin#22348: build: Fix cross build for Windows with …
Merge bitcoin/bitcoin#22348: build: Fix cross build for Windows with …