找回密码
 用户注册

QQ登录

只需一步,快速开始

查看: 5270|回复: 9

求解错误error C1189: #error : ACE requires Windows CE 3.0 and later

  [复制链接]
发表于 2010-7-28 10:53:40 | 显示全部楼层 |阅读模式
如题,我包含了头文件#include "ace/svc_handler.h"结果就出现了
error C1189: #error : ACE requires Windows CE 3.0 and later.
该怎么解决呢?开发工具是VS2005
发表于 2010-7-28 14:17:36 | 显示全部楼层
config.h文件是什么内容?
 楼主| 发表于 2010-7-28 14:20:02 | 显示全部楼层
#ifndef ACE_CONFIG_WINCE_H
#define ACE_CONFIG_WINCE_H

#include /**/ "ace/pre.h"

#ifndef ACE_CONFIG_WIN32_H
# error Use config-win32.h in config.h instead of this header
#endif  // ACE_CONFIG_WIN32_H

#if !defined (UNDER_CE)
# error Define UNDER_CE to version (i.e. 300 = 3.0)
#endif  // UNDER_CE

#if (UNDER_CE < 300)
# error ACE requires Windows CE 3.0 and later.//问题在这句
#endif  // UNDER_CE

#if (UNDER_CE < 400)
// CE 3 doesn't have Winsock 2, but CE 4 does.
 楼主| 发表于 2010-7-28 15:10:46 | 显示全部楼层
我的是windows mobile应用程序,该怎么办呢?
发表于 2010-7-28 15:20:50 | 显示全部楼层
Building and Installing ACE on Windows with Microsoft Visual Studio

ACE contains project files for Microsoft Visual Studio .NET 2003 (VC7.1) and Visual Studio 2005 (VC8). Visual Studio 2005 supports building for desktop/server Windows as well as for Windows CE and Windows Mobile. Since not all users will be interested in the CE/Mobile capability, these platforms have separate solution and project files from the desktop/server Windows. Furthermore, VC7.1 and VC8 use different file formats but the same file suffixes (.sln and .vcproj). To support both environments, ACE supplies files with different names for the different development and target platforms. The platform/name mapping is shown below. All solution files have a .sln suffix and all project files have a .vcproj suffix.
看这段,在ACE-INSTALL.html中,另外,要用对应版本的sln.
 楼主| 发表于 2010-7-28 15:42:15 | 显示全部楼层
我是新手刚刚才接触ACE。我这只编译了用于pocketpc2003的ACE库,是因为库不匹配是吗

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?用户注册

×
发表于 2010-7-28 15:52:24 | 显示全部楼层
会不会是config.h文件,不能找到相应的文件?我之前出现过,类似情况,Config.h文件和你用的是一样的,我使用的环境是Linux,但是找不到相应的config.linux.h文件,编译出错,后来我直接将config.linux.h文件内容copy到config.h中就可以了!
发表于 2010-7-29 15:06:07 | 显示全部楼层
本帖最后由 dwh0403 于 2010-7-29 16:11 编辑
我是新手刚刚才接触ACE。我这只编译了用于pocketpc2003的ACE库,是因为库不匹配是吗
...
andywangcn 发表于 2010-7-28 15:42


编译报错是宏定义的问题,和库没有关系,建议你看看那个出错宏的作用,针对这个去解决问题。另外需要注意编译的工程是否对应于CE的环境。

对应于wince的ace.dll已经生成,说明你的ace的工程没有问题,那么问题就是在于你创建的工程中没有正确包含某些文件或者宏定义,参考wince对应的ace工程设置修改试试
发表于 2010-9-7 15:54:57 | 显示全部楼层
PPC2003是很老的版本了,对应的CE版本应该是3.x
现在已经找不到使用PPC2003的新手机了,你既然是学习,可以考虑改用Windows Mobile 5或者6来学习,SDK在微软的网站可以下载
 楼主| 发表于 2010-11-16 11:16:56 | 显示全部楼层
thanks very much
您需要登录后才可以回帖 登录 | 用户注册

本版积分规则

Archiver|手机版|小黑屋|ACE Developer ( 京ICP备06055248号 )

GMT+8, 2024-5-8 06:38 , Processed in 0.015731 second(s), 6 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表