用vs2005新生成一个WM5 MFC应用程序,出现以下错误,怎么解决呀。(急)

anstern 2009-03-03 07:03:14

C:\Program Files\Microsoft Visual Studio 8\VC\include\ctype.h(175) : error C2448: '_CRT_OBSOLETE' : function-style initializer appears to be a function definition
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\basetsd.h(166) : error C2146: syntax error : missing ';' before identifier 'SIZE_T'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\basetsd.h(167) : error C2146: syntax error : missing ';' before identifier 'SSIZE_T'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\basetsd.h(173) : error C2146: syntax error : missing ';' before identifier 'DWORD_PTR'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(171) : error C2143: syntax error : missing ';' before '*'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(172) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(172) : error C2143: syntax error : missing ';' before '*'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(174) : error C2143: syntax error : missing ';' before '*'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(175) : error C2143: syntax error : missing ';' before '__unaligned'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(175) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(176) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(176) : error C2143: syntax error : missing ';' before '*'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(177) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(177) : error C2143: syntax error : missing ';' before '__unaligned'
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(177) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(179) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(179) : error C2143: syntax error : missing ';' before '*'
.....
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\winnt.h(3766) : fatal error C1003: error count exceeds 100; stopping compilation
Build log was saved at "file://c:\Documents and Settings\zhuangjiandong\My Documents\Visual Studio 2005\Projects\test11\test11\Windows Mobile 5.0 Pocket PC SDK (ARMV4I)\Debug\BuildLog.htm"
test11 - 204 error(s), 0 warning(s)
...全文
105 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ppass 2009-03-04
  • 打赏
  • 举报
回复
很明显你的路径设置有问题.
C:\Program Files\Microsoft Visual Studio 8\VC\include\ctype.h
这个是不对的,正确的应该是:
C:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\ctype.h

解决方法是手工设置环境变量,或者想办法恢复默认环境变量.
anstern 2009-03-03
  • 打赏
  • 举报
回复
回二楼,不能
这个工程我是向导生成的,没改过代码,编译就出这个错误
儿大不由爷 2009-03-03
  • 打赏
  • 举报
回复
你去SDK下打开个MFC例子,看能编译否

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧