-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
编译报错 #3
Comments
不是。GCC 4.8以上,Clang 4以上,或VS2017以上带的MSVC都可以。 运行cmake的编译器和实际执行编译的编译器要保持一致。在cmake阶段会检测编译器功能。如果切换编译器要删除build目录里的CMakeCache.txt文件。否则某些检测的结果可能会被cmake认为未变化而不重新执行检测过程。 |
不太能理解你说的意思,我查了一下unrecognized command line option ‘-fcoroutines,说是需要C++20才能支持 |
这个选项如果在执行cmake的阶段检查出来发现不支持就不会加。 https://github.com/atframework/libatapp/actions/runs/1119065097 和 https://github.com/atframework/atframe_utils/actions/runs/1197439868 有各类编译环境的CI检查。 |
明白你的意思了,诡异的是我这个报错是在执行cmake的时候报错的,就是 sh cmake_dev.sh的时候 |
我贴一下cmake第一个报错的地方
|
我修订下构建系统。CI里没有gcc 6的环境。可能gcc 6下cmake自带的检测有点问题。我自己patch一下吧,感谢反馈。 |
谢谢抽空解答,刚试了一下,确实还是有问题 |
这个实例项目是必须要C++20是吧,编译报错提示g++: error: unrecognized command line option ‘-fcoroutines’
升级gcc12就编译通过了
The text was updated successfully, but these errors were encountered: