5254|5

69

帖子

0

TA的资源

一粒金砂(初级)

楼主
 

加上 #include 后编译,怎么出现这么多错误?怎么解决呀? [复制链接]

我想用 IImagingFactory 和 IImage 加载 PNG 图片,加上 #include   后编译,怎么出现这么多错误?怎么解决呀?

c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(61) : error C2054: expected '(' to follow 'inline'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(64) : error C2085: 'GetPixelFormatSize' : not in formal parameter list
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(64) : error C2143: syntax error : missing ';' before '{'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(69) : error C2054: expected '(' to follow 'inline'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(72) : error C2085: 'IsIndexedPixelFormat' : not in formal parameter list
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(72) : error C2143: syntax error : missing ';' before '{'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(77) : error C2054: expected '(' to follow 'inline'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(80) : error C2085: 'IsAlphaPixelFormat' : not in formal parameter list
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(80) : error C2143: syntax error : missing ';' before '{'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(85) : error C2054: expected '(' to follow 'inline'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(88) : error C2085: 'IsExtendedPixelFormat' : not in formal parameter list
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(88) : error C2143: syntax error : missing ';' before '{'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(101) : error C2054: expected '(' to follow 'inline'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(104) : error C2085: 'IsCanonicalPixelFormat' : not in formal parameter list
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(104) : error C2143: syntax error : missing ';' before '{'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(117) : error C2061: syntax error : identifier 'public'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdipluspixelformats.h(121) : error C2059: syntax error : '}'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(67) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(67) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(71) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(103) : error C2061: syntax error : identifier 'ImageCodecInfo'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(103) : error C2059: syntax error : ';'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(104) : error C2449: found '{' at file scope (missing function header?)
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(119) : error C2059: syntax error : '}'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(154) : error C2061: syntax error : identifier 'BitmapData'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(154) : error C2059: syntax error : ';'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(155) : error C2449: found '{' at file scope (missing function header?)
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(163) : error C2059: syntax error : '}'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(227) : error C2061: syntax error : identifier 'EncoderParameter'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(227) : error C2059: syntax error : ';'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(228) : error C2449: found '{' at file scope (missing function header?)
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(234) : error C2059: syntax error : '}'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(249) : error C2061: syntax error : identifier 'PropertyItem'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(249) : error C2059: syntax error : ';'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(250) : error C2449: found '{' at file scope (missing function header?)
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\gdiplusimaging.h(257) : error C2059: syntax error : '}'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(478) : error C2065: 'ImageFlagsScalable' : undeclared identifier
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(478) : error C2057: expected constant expression
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(479) : error C2065: 'ImageFlagsHasAlpha' : undeclared identifier
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(479) : error C2057: expected constant expression
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(480) : error C2065: 'ImageFlagsPartiallyScalable' : undeclared identifier
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(480) : error C2057: expected constant expression
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(532) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(532) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(536) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(654) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(654) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(658) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(710) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(710) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(714) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(763) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(763) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(767) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(831) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(831) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(835) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(968) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(968) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(972) : error C2059: syntax error : ':'
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(1054) : error C2485: 'uuid' : unrecognized extended attribute
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(1054) : error C2059: syntax error : '('
c:\program files\windows ce tools\wce500\standardsdk_500\include\armv4i\imaging.h(1058) : error C2059: syntax error : ':'
Error executing clarm.exe.

最新回复

期待详细答案  详情 回复 发表于 2010-2-22 11:30
点赞 关注

回复
举报

76

帖子

0

TA的资源

一粒金砂(初级)

沙发
 
看看这个http://blog.eeworld.net/faintbook/archive/2009/03/24/4019963.aspx。
注意一下头文件包含的位置。
 
 

回复

73

帖子

0

TA的资源

一粒金砂(初级)

板凳
 
为什么在工程设置里选择“Not using precompiled headers”就出现这个编译错误?
 
 
 

回复

62

帖子

0

TA的资源

一粒金砂(初级)

4
 
可以试试1楼的方法,C++语言定义的太细,搞不好就会出错。
 
 
 

回复

70

帖子

0

TA的资源

一粒金砂(初级)

5
 
静态库没有连接吧,image.h头文件我使用过,不会出问题的
 
 
 

回复

72

帖子

0

TA的资源

一粒金砂(初级)

6
 
期待详细答案
 
 
 

回复
您需要登录后才可以回帖 登录 | 注册

随便看看
查找数据手册?

EEWorld Datasheet 技术支持

相关文章 更多>>
关闭
站长推荐上一条 1/8 下一条

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

About Us 关于我们 客户服务 联系方式 器件索引 网站地图 最新更新 手机版

站点相关: 国产芯 安防电子 汽车电子 手机便携 工业控制 家用电子 医疗电子 测试测量 网络通信 物联网

北京市海淀区中关村大街18号B座15层1530室 电话:(010)82350740 邮编:100190

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved
快速回复 返回顶部 返回列表