thinke365 发表于 2010-2-28 15:51:51

ACE WinCE编译失败

ACE WinCE编译失败

编译环境VS 2005,系统XP SP2。
config.h内容:
#include "config-win32.h"

编译命令(基于命令行编译,将输出重定向到文本文件,否则输出会被冲掉,错误无法追踪):
D:\ACE-5.7.6\ACE_wrappers>devenv ACE_vc8_WinCE.sln /rebuild "DEBUG" >> c:\build_wince.txt

总体报错信息:
Build log was saved at "file://d:\ACE-5.7.6\ACE_wrappers\ACEXML\apps\svcconf\Deb
ug\ACEXML_XML_Svc_Conf_Parser_vc8_WinCE\I386\BuildLog.htm"
ACEXML_XML_Svc_Conf_Parser - 0 error(s), 0 warning(s)
========== Rebuild All: 617 succeeded, 1 failed, 0 skipped ==========

看文本文件,里面的报错信息有:
------ Rebuild All started: Project: FaCENOACE, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'FaCENOACE', configuration 'Debug|Win32'
Compiling...
Main.cpp
d:\ace-5.7.6\ace_wrappers\contrib\face\FaCE.h(20) : fatal error C1189:#error :This project can not be built for H/PC Pro 2.11 or earlierplatforms.
FaCE.cpp
d:\ace-5.7.6\ace_wrappers\contrib\face\FaCE.h(20) : fatal error C1189:#error :This project can not be built for H/PC Pro 2.11 or earlierplatforms.
CE_Screen_Output.cpp
.\CE_Screen_Output.cpp(109) : error C2664: 'wsprintfA' : cannot convert parameter 1 from 'wchar_t ' to 'LPSTR'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\CE_Screen_Output.cpp(118) : error C2664: 'wsprintfA' : cannot convert parameter 1 from 'wchar_t ' to 'LPSTR'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\CE_Screen_Output.cpp(127) : error C2664: 'wsprintfA' : cannot convert parameter 1 from 'wchar_t ' to 'LPSTR'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\CE_Screen_Output.cpp(145) : error C2664: 'wsprintfA' : cannot convert parameter 1 from 'wchar_t ' to 'LPSTR'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\CE_Screen_Output.cpp(154) : error C2664: 'wsprintfA' : cannot convert parameter 1 from 'wchar_t ' to 'LPSTR'
      Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
CE_ARGV.cpp
Generating Code...
Build log was saved at "file://d:\ACE-5.7.6\ACE_wrappers\contrib\FaCE\Debug\FaCENOACE_vc8_WinCE\I386\BuildLog.htm"
FaCENOACE - 7 error(s), 0 warning(s)

编译输出的详细信息放在附件中了:

winston 发表于 2010-2-28 16:57:26

我有几年嵌入式开发的经验。
你编译的平台选择貌似有点问题,看提示,说是不支持?

thinke365 发表于 2010-3-1 01:41:54

原帖由 winston 于 2010-2-28 16:57 发表 http://www.acejoy.com/bbs/images/common/back.gif
我有几年嵌入式开发的经验。
你编译的平台选择貌似有点问题,看提示,说是不支持?
VS 2005版本有问题?
还是其他什么问题?
页: [1]
查看完整版本: ACE WinCE编译失败