fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
?
?
1. 先看看你的模塊是否是64位,這個(gè)一般都是,如何配置64位工程,這里就不說了;
?
2. 查看該模塊鏈接的靜態(tài)庫或者dll是否是64位的;
Configuration-->kinker-->General-->Additional Library Directories 看看是鏈接到64位的目錄;
Configuration-->kinker-->input-->Additional Dependencies ?中的庫是否都是64位;
?
3. 看看你鏈接的庫是否都按64位編譯的,臨時(shí)文件,目標(biāo)文件是否生成到64位目錄;
?
4. 看看你鏈接的靜態(tài)庫:
Configuration-->Librarian-->General-->Additional Dependencies
Configuration-->Librarian-->General-->Additional library Directories
是否有依賴32位內(nèi)容,其實(shí)靜態(tài)庫不需要鏈接靜態(tài)庫,我就是因?yàn)殪o態(tài)庫去依賴了32位的,導(dǎo)致64位模塊編譯失敗。
?
5. 最后實(shí)在不行試試改這個(gè)地方:
Configuration-->Preprocessor-->Preprocessor Definitions-->WIN32改為_WIN64
?
總結(jié):
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
這個(gè)錯(cuò)誤提示想告訴你的是,該64位模塊依賴了32位的東西,確保你依賴的庫都是32位,并且依賴的庫沒有包含別人32位的東西。
轉(zhuǎn)載于:https://www.cnblogs.com/yuzhould/p/4476115.html
總結(jié)
以上是生活随笔為你收集整理的fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 远程桌面管理
- 下一篇: apache httpclient4 设