CppCoroutines
CppCoroutines copied to clipboard
make时候报错
[ 12%] Building CXX object CMakeFiles/03.functional.cpp.dir/03.functional.cpp.o
In file included from /home/ubuntu/CppCoroutines/03.functional.cpp:5:
/usr/include/c++/10/coroutine:295:2: error: #error "the coroutine header requires -fcoroutines"
不知道为啥cmake ..
之后调用make
报错了。更改了一下cmake_minimum_required
其他没改。g++是g++10
cmake_minimum_required(VERSION 3.16)
对cmake不是很懂希望大佬们别见怪。