Ребят, помогите. Учу си++. И уже который раз в книге используются функции 17-ой версии. На CodeBlock(типа Visual Studio) у меня все работает, там сделал по туториалллу, но вот в командной строке файл не компилируется. Я использую в основном gVim, а не CodeBlock. Привык очень. создаю там файлы, и вызываю их через командную строку. Но пишет ошибку до сих пор:
main.cpp: In function 'int main()':
main.cpp:5:8: error: 'string_view' is not a member of 'std'
5 | std::string_view text{ "hello" }; // view the text "hello", which is stored in the binary
| ^~~~~~~~~~~
main.cpp:5:8: note: 'std::string_view' is only available from C++17 onwards
main.cpp:6:8: error: 'string_view' is not a member of 'std'
6 | std::string_view str{ text }; // view of the same "hello"
Windows 10. MinGW 9.0.2 вроде.
-std=c++17
.