Skip to content
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

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

Closed
matrixjoeq opened this issue Jun 29, 2022 · 2 comments
Closed

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

matrixjoeq opened this issue Jun 29, 2022 · 2 comments

Comments

@matrixjoeq
Copy link

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"

@andreasfertig
Copy link
Owner

Hello @matrixjoeq,

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

Andreas

@andreasfertig
Copy link
Owner

Fixed by #514.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants