突然出现错误gdiplustypes.h(280): error C2059: syntax error : 'constant'等未知错误

Posted wuguoqiang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了突然出现错误gdiplustypes.h(280): error C2059: syntax error : 'constant'等未知错误相关的知识,希望对你有一定的参考价值。

gdiplustypes.h(280): error C2059: syntax error : ‘constant‘
gdiplustypes.h(280): error C2238: unexpected token(s) preceding ‘;‘
gdiplustypes.h(281): error C2059: syntax error : ‘constant‘
gdiplustypes.h(281): error C2238: unexpected token(s) preceding ‘;‘
gdiplustypes.h(239): warning C4244: ‘=‘ : conversion from ‘float‘ to ‘int‘, possible loss of data
gdiplustypes.h(239): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(239): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(244): error C2059: syntax error : ‘constant‘
gdiplustypes.h(245): error C2039: ‘point‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(245): error C2059: syntax error : ‘constant‘
gdiplustypes.h(250): error C2039: ‘size‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(250): error C2039: ‘Width‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(251): warning C4244: ‘=‘ : conversion from ‘const Gdiplus::REAL‘ to ‘int‘, possible loss of data
gdiplustypes.h(251): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(257): warning C4244: ‘=‘ : conversion from ‘Gdiplus::REAL‘ to ‘int‘, possible loss of data
gdiplustypes.h(257): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(258): warning C4244: ‘=‘ : conversion from ‘Gdiplus::REAL‘ to ‘int‘, possible loss of data
gdiplustypes.h(258): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(263): error C2059: syntax error : ‘constant‘
gdiplustypes.h(269): error C2039: ‘point‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(269): error C2059: syntax error : ‘constant‘
gdiplustypes.h(275): error C2039: ‘point‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(275): error C2059: syntax error : ‘constant‘
gdiplustypes.h(296): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(296): error C2143: syntax error : missing ‘,‘ before ‘&‘
gdiplustypes.h(302): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(302): error C2143: syntax error : missing ‘,‘ before ‘&‘
gdiplustypes.h(303): error C2535: ‘Gdiplus::Point::Point(const int)‘ : member function already defined or declared
aincludegdiplustypes.h(296) : see declaration of ‘Gdiplus::Point::Point‘
gdiplustypes.h(308): error C2061: syntax error : identifier ‘INT‘
gdiplustypes.h(310): error C2535: ‘Gdiplus::Point::Point(void)‘ : member function already defined or declared
aincludegdiplustypes.h(291) : see declaration of ‘Gdiplus::Point::Point‘
gdiplustypes.h(315): error C2143: syntax error : missing ‘;‘ before ‘+‘
gdiplustypes.h(315): error C2461: ‘Gdiplus::Point‘ : constructor syntax missing formal parameters
gdiplustypes.h(315): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(315): error C2143: syntax error : missing ‘,‘ before ‘&‘
gdiplustypes.h(316): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(321): error C2143: syntax error : missing ‘;‘ before ‘-‘
gdiplustypes.h(321): error C2461: ‘Gdiplus::Point‘ : constructor syntax missing formal parameters
gdiplustypes.h(321): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(321): error C2143: syntax error : missing ‘,‘ before ‘&‘
gdiplustypes.h(322): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(327): error C2146: syntax error : missing ‘;‘ before identifier ‘Equals‘
gdiplustypes.h(327): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(327): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(327): error C2143: syntax error : missing ‘,‘ before ‘&‘
gdiplustypes.h(328): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(330): warning C4183: ‘Equals‘: missing return type; assumed to be a member function returning ‘int‘
gdiplustypes.h(334): error C2143: syntax error : missing ‘;‘ before ‘constant‘
gdiplustypes.h(334): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(334): error C2238: unexpected token(s) preceding ‘;‘
gdiplustypes.h(335): error C2143: syntax error : missing ‘;‘ before ‘constant‘
gdiplustypes.h(335): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
gdiplustypes.h(335): error C2238: unexpected token(s) preceding ‘;‘
gdiplustypes.h(293): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(293): error C2106: ‘=‘ : left operand must be l-value
gdiplustypes.h(298): error C2039: ‘point‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(298): error C2059: syntax error : ‘constant‘
gdiplustypes.h(299): error C2039: ‘point‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(299): error C2059: syntax error : ‘constant‘
gdiplustypes.h(304): error C2039: ‘size‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(304): error C2039: ‘Width‘ : is not a member of ‘Gdiplus::PointF‘
aincludegdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(305): error C2228: left of ‘.Height‘ must have class/struct/union

gdiplustypes.h(311): error C2065: ‘x‘ : undeclared identifier
gdiplustypes.h(312): error C2065: ‘y‘ : undeclared identifier
gdiplustypes.h(317): error C2059: syntax error : ‘constant‘
gdiplustypes.h(323): error C2228: left of ‘.Point‘ must have class/struct/union

 

 

 

 

考虑编译该文件所引用的头文件,把头文件位置更改,尝试解决问题

以上是关于突然出现错误gdiplustypes.h(280): error C2059: syntax error : 'constant'等未知错误的主要内容,如果未能解决你的问题,请参考以下文章

突然出现Apache错误?致命错误:未捕获错误

在没有进行任何代码更改的情况下突然出现错误“调试断言失败错误”。 (在 C++ 代码中)

在 cmd 上使用 matplotlib 时突然出现 Qt 错误

ASP.Net Core:突然出现数百个构建错误

信标 - 三星 Galaxy Tab A6 SM-T280 上的 RSSI 错误

错误无法打开包含文件:'GLES2/gl2.h':没有这样的文件或目录突然出现