cppinsights icon indicating copy to clipboard operation
cppinsights copied to clipboard

[C++20] Coroutine header file requires -fcoroutines

Open matrixjoeq opened this issue 3 years ago • 1 comments

header file cannot be included for C++20 features. It reports the following error: /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/coroutine:334:2: error: "the coroutine header requires -fcoroutines" #error "the coroutine header requires -fcoroutines"

matrixjoeq avatar Jun 29 '22 06:06 matrixjoeq

Hello @matrixjoeq,

thanks for reporting this. You need to enable "Use libc++". Clang and GCC are not compatible at the moment.

Andreas

andreasfertig avatar Jun 29 '22 06:06 andreasfertig

Fixed by #514.

andreasfertig avatar Feb 04 '23 11:02 andreasfertig