c语言错误代码c2059syntax,突然出现错误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

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值