Skip to content

Compilation error in VS 2026 18.6.0: C2338 static assertion failed - experimental coroutine headers deprecated (error STL1011) #59

Description

@yiky84119

Which API doesn't behave as documented, and how does it misbehave?
just_audio_windows: 0.2.3

Issue 1: Experimental coroutine deprecation error
C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\include\experimental\coroutine(37,1): error C2338: static assertion failed: 'error STL1011: The /await compiler option, <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 and C++23 headers. You can define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS to suppress this error for now.'

Issue 2: File encoding error for uri_utils.hpp
The uri_utils.hpp file has an incorrect file encoding format. It needs to be saved as **Unicode (UTF-8 with BOM)

Error messages

static assertion failed: 'error STL1011: The /await compiler option, <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 <coroutine> and C++23 <generator> headers. You can define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS to suppress this error for now.'

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • OS: Widnows

Flutter SDK version

[✓] Flutter (Channel stable, 3.41.9, on Microsoft Windows [版本 10.0.26200.8457], locale zh-CN)
[✓] Windows Version (Windows 11 or higher, 25H2, 2009)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.6.0)
[✓] Proxy Configuration
[✓] Connected device (3 available)
[✓] Network resources

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions