Skip to content

undefined reference to `DwmExtendFrameIntoClientArea' #57

Description

@L-Super

当我在QtCreator尝试编译Windows example时,先提示GdiPlusColor.h无法找到(原因:改为#include <gdiplus/GdiPlusColor.h>),然后就遇到了这个错误

D:\GithubRepo\Qt-Nice-Frameless-Window\framelesswindow\framelesswindow.cpp:62: error: undefined reference to `DwmExtendFrameIntoClientArea'
D:\GithubRepo\Qt-Nice-Frameless-Window\build-Qt-Nice-Frameless-Window-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\framelesswindow\debug/libframelesswindow.a(framelesswindow.o): In function `CFramelessWindow::setResizeable(bool)':
D:\GithubRepo\Qt-Nice-Frameless-Window\build-Qt-Nice-Frameless-Window-Desktop_Qt_5_15_2_MinGW_64_bit-Debug\framelesswindow/../../framelesswindow/framelesswindow.cpp:62: undefined reference to `DwmExtendFrameIntoClientArea'

请问应该如何解决?

环境:
Win 10 21H2
Qt 5.15.2
VS2022(SDK 10)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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