在VS2005中,利用向导“VC++|智能设备|MFC智能设备应用程序”创建一个基于对话框的应用程序,调试后出现以下错误:
>D:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(102) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>PropertyBag.cpp
1>D:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(102) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>EricCamera.cpp
1>D:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(102) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>CameraDemoDlg.cpp
1>D:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(102) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>CameraDemo.cpp
1>D:\Program Files\Microsoft Visual Studio 8\VC\ce\include\crtdefs.h(102) : fatal error C1189: #error : ERROR: Use of C runtime library internal header file.
1>Generating Code...
1>Build log was saved at "file://e:\电子书\嵌入式\Windows CE嵌入式高级编程及其实例详解code\7\CameraDemo\CameraDemo\UT_S3C6410 (ARMV4I)\Release\BuildLog.htm"
1>CameraDemo - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========
求高手指点一下啊!
------解决方案--------------------------------------------------------
没有定义符号
#if !defined(_CRTBLD) && !defined(_WIN32_WCE)
/* This version of the header files is NOT for user programs.
* It is intended for use when building the C runtimes ONLY.
* The version intended for public use will not have this message.
*/
#error ERROR: Use of C runtime library internal header file.
#endif /* _CRTBLD && !_WIN32_WCE */
------解决方案--------------------------------------------------------
预定义符号在项目设置里啊,楼上的哥哥告诉你了,不行的话看帮助
------解决方案--------------------------------------------------------
#define _WIN32_WCE