Bitcoin full node and query server

May 26, 2026

View in context in the libbitcoin Slack #general mirror.

E
Enligths20:19
I added /std:c++20 option but still I got this error:
C:\Users\tanan\code\libbitcoin-example>cl /EHsc /std:c++20 hello.cpp
Compilateur d'optimisation Microsoft (R) C/C++ version 19.44.35227 pour x64
Copyright (C) Microsoft Corporation. Tous droits réservés.

hello.cpp
C:\Users\tanan\source\repos\libbitcoin-system\include\bitcoin/system/preprocessor.hpp(185): error C2338: static_assert failed: 'C++20 minimum required.'
Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
- add -D_WIN32_WINNT=0x0601 to the compiler command line; or
- add _WIN32_WINNT=0x0601 to your project's Preprocessor Definitions.
Assuming _WIN32_WINNT=0x0601 (i.e. Windows 7 target).
I replaced the code inside hello.cpp with an example from cppreference using some c++20 features and it compiled with success. So I am missing something when trying to include bitcoin\system.hpp