突然出现错误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‘
a\include\gdiplustypes.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‘
a\include\gdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(250): error C2039: ‘Width‘ : is not a member of ‘Gdiplus::PointF‘
a\include\gdiplustypes.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‘
a\include\gdiplustypes.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‘
a\include\gdiplustypes.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
a\include\gdiplustypes.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
a\include\gdiplustypes.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‘
a\include\gdiplustypes.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‘
a\include\gdiplustypes.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‘
a\include\gdiplustypes.h(235) : see declaration of ‘Gdiplus::PointF‘
gdiplustypes.h(304): error C2039: ‘Width‘ : is not a member of ‘Gdiplus::PointF‘
a\include\gdiplustypes.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'等未知错误

原文地址:https://www.cnblogs.com/wuguoqiang/p/12307153.html

时间: 2024-08-28 09:16:49

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

error C2143: syntax error : missing ';' before '{'

这是我在实现哈夫曼树的时候,遇到的错误,具体为什么我也不清楚!!!因为这是我用学校实验室的电脑编译出现的错误(用的软件是VC6.0,贼老的版本!!!),我自己的是Code Blocks(没有出错)??? 代码如下: for ( i = 1; i <= n; i++ ) { huffNode HT[i](w[i],0,0,0);//初始化前n个节点(构造哈夫曼树的原始节点) } 然后,就有错了(-_-!) error C2057: expected constant expression erro

一个关于调用函数函参写void的错误error C2143 syntax error missing &#39;)&#39; before &#39;type&#39;

error C2143 syntax error missing ')' before 'type' 错误代码: srand((unsigned)clock(void)); 错误原因: 画蛇添足的写了void 修改: 把void去掉即可 总结: void代表空,就是实实在在的什么都没有,除非是在声明,否则平常用的时候就是空. 一个关于调用函数函参写void的错误error C2143 syntax error missing ')' before 'type'

error C2143: syntax error : missing &#39;;&#39; before &#39;type&#39;

许久之前,就想看看C和C++,看看这两种神奇的编程语言,但是一直被这样或者那样的琐事给耽搁了(狂喷自己的拖延症). 今天翻开自己的移动硬盘找到一本古老的书籍:<The C Programming Language 中文版>,浏览一下,缓解一下内心的空虚. 事情并没有想象中的那么顺利,刚看了一个例子的两种方法,但是当把他们组合起来时,就遇到了困难: 错误提示: error C2143: syntax error : missing ';' before 'type' error C2065: '

LINK : fatal error LNK1117: syntax error in option &#39;VERSION:1.6.5&#39;

今天在用vs2015编译ogre 1.6.5的代码时发生连接错误 LINK : fatal error LNK1117: syntax error in option 'VERSION:1.6.5'. 解决:On the Settings (Project > Settings > Linker) removing the "Version" entry. 没有深入搞懂为什么,先Mark下. 参考: http://stackoverflow.com/questions/20

vs2012编译C代码,总是出现error C2143: syntax error : missing &#39;;&#39; before &#39;type&#39;

今天编译一个动态库,里面有用C编写的源文件, 为了调试自己加了一些简单的信息输出语句,但是总是编译不过, 最后精简到只是定义一个函数的局部变量也会编译失败, 最后Google了才明白,vs在编译C代码的时候会有一些特殊的check, 其中一种就是需要函数定义局部变量要在开头. 举例如下: 错误的代码 void func1() { int x: //do some work int y; //do other work } 这样的代码在编译的时候就会在int y 这里报error C2143: s

配置NDK Cygwin .bash_profile:行47: 语法错误: 未预期的文件结尾 syntax error: unexpected end of file 解决

可以在cygwin中通过vim修改,也可以在windows安装目录中修改 home\<你的用户名>\.bash_profile 文件中最后添加环境变量 NDKROOT=/cygdrive/e/Andriod/develop/android-ndk-r8 export NDKROOT 其中NDK=/cygdrive/<你的盘符>/<android ndk 目录> ,"NDK"这个名字随便起,以后经常用不要太长. 重启cygwin,输入: cd $NDK

syntax error near unexpected token(关于跨平台非法字符(^M)的解决方法)

别人写了一个shell拿过来在linux试用,执行报错如下: 仔细查找了还是没找到错误,一直都是报syntax error near unexpected token `{ 网上搜索了一下,找到了端倪,现在简单整理如下: 现在可以判断给我脚本的这位仁兄很有可能是在windows平台上编写的.使用vim -b命令查看文件内容如下: 每一行多了一个^M有木有? 那么接下来就要搞清楚这个^M是什么东东? long long long ago .....  老式的电传打字机使用两个字符来另起新行.一个字

syntax error : missing &#39;;&#39; before &#39;type&#39;

#include <stdio.h> #include <stdlib.h> int main (int argc, char **argv) { char a[] = {'a','b','c','d','e'}; char b[] = "abcde"; char c[][3] = {{ 'a' , 'b' , 'c' },{ 'd' , 'e' , 'f' },{ 'g' ,'h' , 'j' },{ 'k' , 'h' , 'l' }}; char *p =

VS2015--win32工程配置的一些想法之GdiplusTypes.h(470) : error C3861: &#39;min&#39;: identifier not found

一次一次地,乐此不疲的掉入自己挖的坑儿. 之前博客<VS2015–win32工程配置的一些想法之算法min/max与windows中的 min/max宏冲突>写了如何处理algorithm中std:min和windows中min的冲突问题,我们用到了预处理器NOMINMAX. 标准库在<algorithm>头中定义了两个模板函数std::min() 和 std::max(). 通常用它可以计算某个值对的最小值和最大值.可惜在 Visual C++ 无法使用它们,因为没有定义这些函数