NoesisGUI编译报错【error C2802:静态成员"operator new" 没有形参】解决办法

版权声明:未经同意,不能用于商业用途,版权归本博主所有 https://blog.csdn.net/qq_16123279/article/details/82869528

包含头文件Noesis_pch.h之后,编译报错截图
在这里插入图片描述

解决办法
在#include<Noesis_pch.h>之前加上一个宏判断,如下:
在这里插入图片描述

补充说明
使用下面这种方式更好:

#pragma push_macro("new")
#undef new
#include "Noesis_pch.h"
#pragma pop_macro("new")

猜你喜欢

转载自blog.csdn.net/qq_16123279/article/details/82869528
今日推荐