Skip to content

compile error (wrl/implements.h: no such file or directory) #96

Description

@nikich340

I've added wintoastlib.h and wintoastlib.cpp and linked psapi in CMakeLists to my Qt cmake project, but when trying to compile (even without creating any toast) this error appears. I've checked this repo but haven't found if I should download any additional sources/libs to fix this.
OS: Windows 10

D:/QT_projects/TestToast/wintoastlib.h:28:10: fatal error: wrl/implements.h: No such file or directory
   28 | #include <wrl/implements.h>
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
21:45:41: The process "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" exited with code 1.
Error while building/deploying project SimpleAskerServer (kit: Desktop Qt 6.6.1 MinGW 64-bit)
When executing step "Build"

If I remove this include for a test, the same error happens for wrl/event.h and windows.ui.notifications.h.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions