Error_9_fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
来源:互联网 发布:杨树基因组数据库 编辑:程序博客网 时间:2024/05/19 00:47
Error Description:
Error_9_fatal error LNK1112: module machine type 'X86'conflicts with target machine type 'x64'
这个错误很多人遇到过,解决方法不难,只要修改几个设置就可以了,网上也有相应的解释。
if(!OpenCV程序){
cout<<"请参考:(我见过的最详细的关于此问题的解决方案)"
"http://www.idigitalhouse.com/Blog/?p=111";
}
else{
cout<<"下面的内容将会对你很有帮助!";
}
Problem Analysis:
笔者今天在研究一段开源程序,因程序需要,之前用的是VS2008+OpenCV2.4.4,感觉略有老套,遂新安装了VS2013+OpenCV2.4.10(因3.0.0是beta版本),笔者系统为x64。
我想OpenCV的配置过程大家都不陌生,网上也有很多现成的资料可供参考。但是,我们在严格按着步骤配置时,不料敌人就埋伏在这里,这很可能是这个错误的真正原因。
注意上图中的说明(1),问题就出现在这里。
笔者当时就是这样配置的,测试OpenCV显示图片也跑通了。说明无论你是64位或者32位系统的确不影响opencv的使用。
但是,如果你的程序出现了fatalerror LNK1112,并且后面的错误File是OpenCV的库文件的话,那么问题就出现了。你只加入了32位的库,而没加64位的库文件。
Solution:
解决方法很简单,CommonProperties->VC++Directories->Library Directories添加x64库文件路径就OK了,如下图:
0 0
- Error_9_fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' link error
- tal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- LNK1112:module machine type 'x86' conflicts with target machine type 'X64' 和 module machine type 'x6
- VS配制X64驱动:fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'ARM
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'ARM
- fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'ARM
- 关于使用VS2015编译项目时出现LNK1112 module machine type 'x64' conflicts with target machine type 'X86'
- Word2Vec里实现Huffman树
- K-SVD简述——字典学习,稀疏编码,MOD与之对比(附代码)
- HTML学习笔记--制作表格
- Android获取本地通讯录发生变化的联系人
- OC语言基础知识
- Error_9_fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
- 1032. Sharing (25)
- 说说
- html头文件设置常用之<meta>设置缓存
- Attribute(二)——自定义特性+Asp.net MVC中的filter详解
- MongoDB数据库插入、更新和删除操作详解
- List,Set,Map用法以及区别
- javascript正则表达式RegExp的静态属性之$1-$9
- Android各个版本 版本号对应关系表