fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64
2015-04-22 17:56
16 查看
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
1. 先看看你的模块是否是64位,这个一般都是,如何配置64位工程,这里就不说了;
2. 查看该模块链接的静态库或者dll是否是64位的;
Configuration-->kinker-->General-->Additional Library Directories 看看是链接到64位的目录;
Configuration-->kinker-->input-->Additional Dependencies 中的库是否都是64位;
3. 看看你链接的库是否都按64位编译的,临时文件,目标文件是否生成到64位目录;
4. 看看你链接的静态库:
Configuration-->Librarian-->General-->Additional Dependencies
Configuration-->Librarian-->General-->Additional library Directories
是否有依赖32位内容,其实静态库不需要链接静态库,我就是因为静态库去依赖了32位的,导致64位模块编译失败。
5. 最后实在不行试试改这个地方:
Configuration-->Preprocessor-->Preprocessor Definitions-->WIN32改为_WIN64
总结:
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
这个错误提示想告诉你的是,该64位模块依赖了32位的东西,确保你依赖的库都是32位,并且依赖的库没有包含别人32位的东西。
1. 先看看你的模块是否是64位,这个一般都是,如何配置64位工程,这里就不说了;
2. 查看该模块链接的静态库或者dll是否是64位的;
Configuration-->kinker-->General-->Additional Library Directories 看看是链接到64位的目录;
Configuration-->kinker-->input-->Additional Dependencies 中的库是否都是64位;
3. 看看你链接的库是否都按64位编译的,临时文件,目标文件是否生成到64位目录;
4. 看看你链接的静态库:
Configuration-->Librarian-->General-->Additional Dependencies
Configuration-->Librarian-->General-->Additional library Directories
是否有依赖32位内容,其实静态库不需要链接静态库,我就是因为静态库去依赖了32位的,导致64位模块编译失败。
5. 最后实在不行试试改这个地方:
Configuration-->Preprocessor-->Preprocessor Definitions-->WIN32改为_WIN64
总结:
xxxxxx.lib(xxxxxx.obj) : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'
这个错误提示想告诉你的是,该64位模块依赖了32位的东西,确保你依赖的库都是32位,并且依赖的库没有包含别人32位的东西。
相关文章推荐
- 访问Nginx发生SSL connection error的一种情况
- 星外虚拟主机访问被控出现Unspecified error解决方法
- IIS 错误 Server Application Error 详细解决方法
- On Error Resume Next 语句
- IIS运行错误 Server Application Error 错误代码 Error: 8004的解决方法
- 收集整理的http/1.1 500 server error错误的解决方法
- SQL 2005 ERROR:3145 解决办法(备份集中的数据库备份与现有的数据库不同)
- VC++实现程序开机启动运行的方法
- VC++中HTControl控件类的CHTSlider控制杆控件类简介
- VC++中HTControl控制类使用之CHTDlgBase对话框基类实例
- VC++的if语句应用范围分析
- VC++在TXT文件指定位置追加内容的方法
- CISBitmap派生的VC++位图透明类实例
- PHP函数之error_reporting(E_ALL ^ E_NOTICE)详细说明
- VC++创建msi文件的方法
- node.js使用npm 安装插件时提示install Error: ENOENT报错的解决方法
- PHP 5.3和PHP 5.4出现FastCGI Error解决方法
- 解决mysql ERROR 1017:Can't find file: '/xxx.frm' 错误
- MYSQL ERROR 1045 (28000): Access denied for user (using password: YES)问题的解决
- vs2012 error c4996: This function or variable may be unsafe