MSVC compile error
- Dominant language
- C++
- Stars
- 145
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
I tried to build boost as in the documentation with b2. However, I get the following error message:
```
16:44:14 compile-c-c++ build-143-x64\boost\bin.v2\libs\process\build\msvc-14.3\debug\x86_64\threading-multi\shell.obj
16:44:14 shell.cpp
16:44:14 Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
16:44:14 - add -D_WIN32_WINNT=0x0601 to the compiler command line; or
16:44:14 - add _WIN32_WINNT=0x0601 to your project's Preprocessor Definitions.
16:44:14 Assuming _WIN32_WINNT=0x0601 (i.e. Windows 7 target).
16:44:14 msvc.link.dll build-143-x64\boost\bin.v2\libs\process\build\msvc-14.3\debug\x86_64\threading-multi\boost_process-vc143-mt-gd-x64-1_86.dll
16:44:14 process_handle_windows.obj : error LNK2019: Unresolved external symbol "RtlNtStatusToDosError" in function ""void __cdecl boost::process::v2::detail::suspend_(void *,class boost::system::error_code &)" (?suspend_@detail@v2@process@boost@@YAXPEAXAEAVerror_code@system@4@@Z)".
16:44:14 env.obj : error LNK2001: Unresolved external symbol "RtlNtStatusToDosError".
16:44:14 proc_info.obj : error LNK2001: Unresolved external symbol "RtlNtStatusToDosError".
16:44:14 process_handle_windows.obj : error LNK2019: Unresolved external symbol "NtResumeProcess" in function ""void __cdecl boost::process::v2::detail::resume_(void *,class boost::system::error_code &)" (?resume_@detail@v2@process@boost@@YAXPEAXAEAVerror_code@system@4@@Z)".
16:44:14 process_handle_windows.obj : error LNK2019: Unresolved external symbol "NtSuspendProcess" in function ""void __cdecl boost::process::v2::detail::suspend_(void *,class boost::system::error_code &)" (?suspend_@detail@v2@process@boost@@YAXPEAXAEAVerror_code@system@4@@Z)".
16:44:14 env.obj : error LNK2019: Unresolved external symbol "NtQueryInformationProcess" in function ""struct boost::process::v2::ext::env_view __cdecl boost::process::v2::ext::env(void *,class boost::system::error_code &)" (?env@ext@v2@process@boost@@YA?AUenv_view@1234@PEAXAEAVerror_code@system@4@@Z)".
16:44:14 proc_info.obj : error LNK2001: Unresolved external symbol "NtQueryInformationProcess".
16:44:14 build-143-x64\boost\bin.v2\libs\process\build\msvc-14.3\debug\x86_64\threading-multi\boost_process-vc143-mt-gd-x64-1_86.dll : fatal error LNK1120: 4 unresolved external links
```
- Windows 10
- Visual Studio 2022
- 2c372461e8ab49fde18bff6c3c5e47b721d70383
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.