CppCoroutines icon indicating copy to clipboard operation
CppCoroutines copied to clipboard

make时候报错

Open bugcat9 opened this issue 1 year ago • 0 comments

[ 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不是很懂希望大佬们别见怪。

bugcat9 avatar Mar 18 '23 08:03 bugcat9