Skip to content

Error on x86 builds with Clang #879

@arthurbiancarelli

Description

@arthurbiancarelli

Hello I'm encountering an issue while compiling with Clang targeting a x86 system

In file included from Generated Files\winrt/Windows.Foundation.h:5:
Generated Files\winrt/base.h(8299,9): error : no matching function for call to 'submit_threadpool_callback'
Generated Files\winrt/base.h(8222,17): message : candidate function not viable: no known conversion from '(lambda at Generated Files\winrt/base.h:8299:36)' to 'void (*)(void *, void *) __attribute__((stdcall))' for 1st argument

It looks suspiciously related to #496 and implementing a solution inspired from #511 I can successfully compile my project.

However if I think I understand the problem (The Clang compiler lacks the Visual C++ support for lambdas with stdcall calling convention), I'm not familiar enough with the WinRT code base to understand the potential implications
I've attached the necessary modifications, I'll be happy to create a pull request if theses modifications make sense

base_coroutine_threadpool.h.patch.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions