fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
来源:互联网 发布:mysql多表 union 用法 编辑:程序博客网 时间:2024/05/05 09:27
错误现场:
操作系统:WIndows 7 x64
编译的项目:LightGBM(Light Gradient Boosting Machine)
参考:微软开源分布式高性能GB框架LightGBM安装使用
有小伙伴遇到问题:
您好,我按照您的教程安装lightgbm,但是提示这样的错误WindowsError: [Error 193] %1 不是有效的 Win32,
好像是因为python和dll文件不一致,但是我的python也是64bit的呀我尝试想编译32位的,结果就遇到这个问题了。
解决方法:
如下图:
项目属性,平台选择了Win32,但是 VC++ Directories 中有的选项中还存在 x64 的配置,所以就出现了这个问题,
把所有的都改为 x86 的,再编译就可以了。
======================文档信息===========================
版权声明:非商用自由转载-保持署名-注明出处
署名(BY) :testcs_dn(微wx笑)
文章出处:[无知人生,记录点滴](http://blog.csdn.NET/testcs_dn)
==============欢迎关注我的个人微信订阅号(微wx笑)============
1 0
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' link error
- 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'
- 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'
- VS配制X64驱动:fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- tal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- Error_9_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 '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
- LNK1112:module machine type 'x86' conflicts with target machine type 'X64' 和 module machine type 'x6
- 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 'x64'
- MQTT协议(二)连接和心跳
- Android拍照与录视频
- Chapter 1 The Breadth and Depth of DSP
- 在多个UITextField中监听键盘的弹出和消失
- Windows 7下Git SSH 创建Key的步骤
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- HTML5基础加强css样式篇(css属性transform 函数(2D)的scale(),transform-origin,skew(),translate(),rotate() )(二十四)
- 数据库操作之事务
- NYOJ 82 迷宫寻宝(一)
- Python requests库使用实例
- Java高并发秒杀API之业务分析与DAO层
- 算法训练 寂寞的数
- NYOJ-91 阶乘之和(贪心)
- React学习之事件绑定处理机制(五)