2

I am try to run a sample application. This application is for 32 bit machine. but i want to run it in 64 bit machine but i get this following error:

AFE\AnyFirewallEngine\Unicode Debug\AfBenchmark.obj : fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

i use here two third party library 1. Openssl-0.9.8e
2. boost

which is already build for 64 bit.

My compiler is visual studio 2010

plz help me.................

2 Answers2

2

in my case I had the same problem with openssl 1.0.2d:

fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'

the problem was solved when I run vcvars64.bat insted of vcvars32.bat. In VS15 it is at:

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat

then I was able to run ms\do_win64a and nmake -f ms\nt.mak with no problem

user1438233
  • 1,153
  • 1
  • 14
  • 30
1

You are obviously using at least one other third party library, and the binary which you are trying to link is built for x86. You will have to find or produce an x64 binary of AFE instead.

Jon
  • 428,835
  • 81
  • 738
  • 806