fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
2017-03-16 21:29
627 查看
错误现场:
操作系统:WIndows 7 x64
编译的项目:LightGBM(Light Gradient Boosting Machine)
参考:微软开源分布式高性能GB框架LightGBM安装使用
有小伙伴遇到问题:
您好,我按照您的教程安装lightgbm,但是提示这样的错误WindowsError: [Error 193] %1 不是有效的 Win32,
解决方法:如下图:
![](https://img-blog.csdn.net/20170316212422810?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdGVzdGNzX2Ru/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
项目属性,平台选择了Win32,但是 VC++ Directories 中有的选项中还存在 x64 的配置,所以就出现了这个问题,
把所有的都改为 x86 的,再编译就可以了。
======================文档信息===========================
版权声明:非商用自由转载-保持署名-注明出处
署名(BY) :testcs_dn(微wx笑)
文章出处:[无知人生,记录点滴](http://blog.csdn.NET/testcs_dn)==============欢迎关注我的个人微信订阅号(微wx笑)============
![](https://img-blog.csdn.net/20170309202901381)
操作系统: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笑)============
相关文章推荐
- tal 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'
- 关于使用VS2015编译项目时出现LNK1112 module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- vs2013链接问题: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'
- Module Machine Type 'x64' Conflicts With Target Machine Type
- coredll.lib(COREDLL.dll) : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- coredll.lib(COREDLL.dll) : fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- 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
- fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- 记一次Trouble Shooting的过程: LNK1112: module machine type 'x64' conflicts with target module type 'X86'
- tal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
- fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- fatal error LNK1112: module machine type 'THUMB' conflicts with target machine type 'ARM'
- fatal error LNK1112: module machine type 'MIPS' conflicts with target machine type 'ARM