Link1112 error

I am trying to follow the implementation shown here:

http://shayne-fletcher.blogspot.co.uk/2014/03/financial-modeling-in-python-windows-7.html

There is also a slightly more detailed implementation for the 32 bit version shown here:

http://www.amazon.com/review/R2QLTSQPKTFW5Z/ref=cm_cr_pr_cmt?ie=UTF8&ASIN=0470987847#wasThisHelpful

Amongst other errors I am getting an error:
LNK1112: module machine type 'x64' conflicts with target machine type 'X86'

which relates to "boost_python-vc90-mt-1_55.lib"

I am confident that I have the 64bit version of boost installed and am calling it correctly.

c:\boost_1_55_0\lib64-msvc-9.0

I am also confident that I am using the correct 64bit VS compiler:

c:\Program Files (x86)\Microsoft visual Studio 9.0\VC\bin\amd64\cl.exe

In addition I have the 64 bit version of windows7 and I am using the Visual Studio 2008 x64 Win64 Command Prompt.

It seems to me that some how visual studio is trying to build the 32-bit version but of course I need the 64 bit version. I've tried to search online how to do it but all I can find is this:

https://msdn.microsoft.com/en-us/library/hx5b050y%28v=vs.90%29.aspx
and this
https://msdn.microsoft.com/en-us/library/y0zzbyt4%28v=vs.90%29.aspx

Which shows that you can set the linker options from the command line using \machine but it doesn't tell you what to set this option to, or give an example of it being used.

The poster here seemed to have a similar problem:

http://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ

One respondent (C Johnson) to this question proposed four solutions. However many were described in terms of the visual studio IDE, I need to do everything from visual studio command line.

Can someone tell me how to apply the suggested solutions from Visual Studio Command Line?

I hope this is clearer!

c:\ppf\ext>.\bjam toolset=msvc-9.0 link=shared threading=multi variant=release address-model=64
...patience...
...patience...
...found 3140 targets...
...updating 10 targets...
msvc.link.dll lib\math\src\bin\msvc-9.0\release\address-model-64\threading-multi
\ppf_math.pyd
boost_python-vc90-mt-1_55.lib(boost_python-vc90-mt-1_55.dll) : fatal error LNK11
12: module machine type 'x64' conflicts with target machine type 'X86'



Topic archived. No new replies allowed.