fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'

来源:互联网 发布:java getinstance 编辑:程序博客网 时间:2024/05/01 10:36

此问题为连接库生成文件的平台类型不匹配的问题,一般在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!

原创粉丝点击