1,The Microsoft ActiveSync reported the following error: Unable to load device side components
解决办法,
":/ProgramFiles/Common Files/Microsoft Shared/Windows CE Tools/Platman/target/wce600/armV4i"复制改名为armV4
2,执行makeimg命令的时候出现一下错误:
makeimg: Creating <...> nlscfg.out because <... > nlscfg.inf doesn't exist.
makeimg: run command: fmerge -nls <....> nlscfg.out <... > nlscfg.inf
Error - cannot open input file <...> /postproc/nlscfg.inf
fmerge for Windows CE (Release) (Built on Jan 29 2004 17:34:26)
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
makeimg: FATAL ERROR: Command returned non-zero exit code 1 (dec).
只要运行buildrel.bat($(_WINCEROOT)/PUBLIC/COMMON/OAK/MISC),将相关文件拷贝到Release目录下面,然后重新执行makeimg即可。
3,系统报错总结
Exception 'Raised Exception' (-1): 数组越界
Exception 'Data Abort' (4): 栈出问题了/空指针/访问的数据块无效了(如内存已经回收无效了)
Exception 'Prefetch Abort' (3): 空指针
4,fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
此问题为连接库生成文件的平台类型不匹配的问题,一般在Build 高版本的时候容易出现这个问题.
在VS2005中:
查找:
Project--**Properties--Configuration Properties--Linker--Command Line下有
Additional Properties
你会看到:
/subsystem:windowsce,4.20 /machine:ARM /ARMPADCODE
这时候可以在后面加上 WM5.0 和 WM6.0 的平台信息
/subsystem:windowsce,5.01 /machine:THUMB
/subsystem:windowsce,6.01 /machine:THUMB
重新Build your Project
you would see:
Rebuild All: 1 succeeded, 0 failed, 0 skipped.
Best Regards to all!