KikoPlayProject/KikoPlay

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

Brokenheart100 opened this issue · 2 comments

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

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

#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那一行注释掉或者写为全小写看能不能成功编译?