View in context in the libbitcoin Slack #general mirror.
/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).