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

undefined reference to `DwmExtendFrameIntoClientArea' #57

Open
L-Super opened this issue Oct 26, 2022 · 2 comments
Open

undefined reference to `DwmExtendFrameIntoClientArea' #57

L-Super opened this issue Oct 26, 2022 · 2 comments

Comments

@L-Super
Copy link

L-Super commented Oct 26, 2022

当我在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)

@L-Super
Copy link
Author

L-Super commented Oct 26, 2022

明白了,使用MinGW编译器的缘故,无法编译成功,换成MSVC编译器即可。后面的朋友们注意一下

@SC-One
Copy link

SC-One commented Oct 2, 2023

It's solved , and requested pull.
#59

@L-Super
It's ok there(if you need temporary commit): https://github.com/SC-One/Qt-Nice-Frameless-Window

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