fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
2016-01-11 16:33
826 查看
转载自http://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ、
Check your properties options in your linker settings at: Properties > Configuration Properties > Linker > Advanced > Target Machine. Select MachineX64 if you are targeting a 64 bit build, or MachineX86 if you are making a 32 bit build.
Select Build > Configuration Manager from the main menu in visual studio. Make sure your project has the correct platform specified. It is possible for the IDE to be set to build x64 but an individual project in the solution can be set to target win32. So
yeah, visual studio leaves a lot of rope to hang yourself, but that's life.
Check your library files that they really are of the type of platform are targeting. This can be used by using dumpbin.exe which is in your visual studio VC\bin directory. use the -headers option to dump all your functions. Look for the machine entry for
each function. it should include x64 if it's a 64 bit build.
In visual studio, select Tools > Options from the main menu. select Projects and Solutions > VC++ Directories. Select x64 from the Platform dropdown. Make sure that the first entry is:
$(VCInstallDir)\bin\x86_amd64 followed by $(VCInstallDir)\bin.
Check your properties options in your linker settings at: Properties > Configuration Properties > Linker > Advanced > Target Machine. Select MachineX64 if you are targeting a 64 bit build, or MachineX86 if you are making a 32 bit build.
Select Build > Configuration Manager from the main menu in visual studio. Make sure your project has the correct platform specified. It is possible for the IDE to be set to build x64 but an individual project in the solution can be set to target win32. So
yeah, visual studio leaves a lot of rope to hang yourself, but that's life.
Check your library files that they really are of the type of platform are targeting. This can be used by using dumpbin.exe which is in your visual studio VC\bin directory. use the -headers option to dump all your functions. Look for the machine entry for
each function. it should include x64 if it's a 64 bit build.
In visual studio, select Tools > Options from the main menu. select Projects and Solutions > VC++ Directories. Select x64 from the Platform dropdown. Make sure that the first entry is:
$(VCInstallDir)\bin\x86_amd64 followed by $(VCInstallDir)\bin.
相关文章推荐
- 怪物形象设计要素
- [Andorid开发艺术探索 读书笔记]Activity的生命周期和启动模式 (二)
- Android Accessibility(辅助功能) 学习
- HashMap和HashTable浅谈
- 移动H5前端性能优化指南
- WEB扫描类产品测试--AppScan-WVS-WebRavor(7)
- 理解PHP及Zend Engine的线程安全模型(ZTS)
- spring单例注入init
- 用curl模拟登陆获取页面信息以及相关知识点
- 打开Eclipse/Myeclipse时:Workspace in use or cannot be created, choose a different one.–错误解决办法
- 【转载】Java StringBuffer与StringBuider
- oracle排序
- JS创建对象的几种方式
- Java网络连接之HttpURLConnection与HttpClient 区别及联系
- Difference between new and [[alloc]init] in iOS
- 第14章4节《MonkeyRunner源码剖析》 HierarchyViewer实现原理-装备ViewServer-端口转发 4
- 回调函数、递归函数、可重入函数
- WEB扫描类产品测试--AppScan-WVS-WebRavor(6)
- 软键盘如何加入自己要的按键
- svm学后理解