主题:VS2008下编写DLL遇见问题 共有53411人关注过本帖 |
---|
客人 |
1楼 |
![]() |
VS2008下编写DLL遇见问题 ![]()
在VS2008下编写动态链接库,开发平台为贵公司的EM335X,VS2008下创建一个空的例程,编译后报错,
![]() 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(603) : error C2086: “int __checkReturn_opt”: 重定义 1> c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(503) : 参见“__checkReturn_opt”的声明 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(606) : error C2144: 语法错误 : “int”的前面应有“;” 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(606) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(606) : error C2086: “int __checkReturn_opt”: 重定义 1> c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(503) : 参见“__checkReturn_opt”的声明 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(609) : error C2146: 语法错误 : 缺少“;”(在标识符“wint_t”的前面) 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(609) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(609) : error C2086: “int __checkReturn_opt”: 重定义 1> c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(503) : 参见“__checkReturn_opt”的声明 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(610) : error C2146: 语法错误 : 缺少“;”(在标识符“wint_t”的前面) 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(610) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(610) : error C2086: “int __checkReturn_opt”: 重定义 1> c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(503) : 参见“__checkReturn_opt”的声明 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(611) : error C2146: 语法错误 : 缺少“;”(在标识符“wint_t”的前面) 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(611) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(611) : error C2086: “int __checkReturn_opt”: 重定义 1> c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(503) : 参见“__checkReturn_opt”的声明 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(612) : error C2144: 语法错误 : “wchar_t”的前面应有“;” 1>c:\program files\windows ce tools\sdks\em335x\include\armv4i\stdlib.h(612) : fatal error C1003: 错误计数超过 100;正在停止编译 1>生成日志保存在“file://c:\Users\Administrator\Desktop\新建文件夹 (5)\11\11\EM335x (ARMv4I)\Debug\BuildLog.htm” 以上为部分错误代码,工程创建参考你们的http://www.emtronix.com/article/article2012493.html这篇文章,想请教着具体是什么原因造成的,谢谢
|
单帖管理 | 引用 | 回复 ![]() |
![]() yy |
2楼 信息 | 搜索 | 邮箱 |
![]() ![]() ![]() ![]() |
![]()
使用VS2008编译EM335X工程时,需要将VS2008 sp1补丁打上,另外还需要打一个补丁VisualStudioDeviceWindowsEmbeddedCompact7.msi我们光盘里有提供。
|
单帖管理 | 引用 | 回复 ![]() |