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

编译缺少#include <GdiPlusColor.h>头文件 #147

Open
Brokenheart100 opened this issue Mar 3, 2024 · 2 comments
Open

编译缺少#include <GdiPlusColor.h>头文件 #147

Brokenheart100 opened this issue Mar 3, 2024 · 2 comments

Comments

@Brokenheart100
Copy link

编译缺少#include <GdiPlusColor.h>头文件

@Protostars
Copy link
Collaborator

之前从来没遇到过这个问题,可以详细描述一下吗

@zerobikappa
Copy link
Contributor

#ifdef Q_OS_WIN
#include <windows.h>
#include <WinUser.h>
#include <windowsx.h>
#include <dwmapi.h>
#include <objidl.h> // Fixes error C2504: 'IUnknown' : base class undefined
#include <gdiplus.h>
#include <GdiPlusColor.h>

是这里吧?这段代码只在windows编译下生效。然后正确的头文件名字是全小写的gdipluscolor.h所以就找不到了。不过上一行的gdiplus.h里面好像已经包含了这个头文件了,你试一下直接将GdiPlusColor.h那一行注释掉或者写为全小写看能不能成功编译?

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

3 participants