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! 

 

原文鏈接:http://blog.csdn.net/saifeng/article/details/1781047

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章