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

Unable to build under MSVC preview. #186

Open
nanoric opened this issue Dec 28, 2020 · 3 comments
Open

Unable to build under MSVC preview. #186

nanoric opened this issue Dec 28, 2020 · 3 comments

Comments

@nanoric
Copy link

nanoric commented Dec 28, 2020

cl version: 19.28.29617
Visual Studio version: 16.9.0 preview
error:

C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.28.29617\include\experimental/coroutine(37): fatal error C1189: #error:  The <experimental/coroutine> and <experimental/resumable> headers are only supported with /await and implement pre-C++20 coroutine support. Use <coroutine> for standard C++20 coroutines.

<experimental/coroutine> is not supported in preview version.
consider use under msvc.
maybe __has_include is a good choice to dertemin which file to include.

@nanoric
Copy link
Author

nanoric commented Dec 28, 2020

It seems that VS2019 (without preview, 16.8.3 is unable to build cppcoro too for now.)
I remember that older version of cppcoro has a header <cppcoro/coutines.h> that works fine with both versions.

@andreasbuhr
Copy link
Contributor

In the fork https://github.com/andreasbuhr/cppcoro I made some modifications to make it work.

@nanoric
Copy link
Author

nanoric commented Dec 28, 2020

In the fork https://github.com/andreasbuhr/cppcoro I made some modifications to make it work.

Thanks for responding so quickly, help me so much!

@nanoric nanoric closed this as completed Dec 28, 2020
@nanoric nanoric reopened this Dec 28, 2020
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