title: How to build boost python 3.4 shared libraries for win8.1 64 bit with msvc 10.0
body: <p>I am trying to build boost python for python 3.4 64 libraries because i need them in order to build <a href="http://dlib.net/" rel="nofollow">http://dlib.net/</a> python bindings 
  My setup is as follows:
  MSVC 12.0 is installed
  python3.4 64 bit is installed
  i downloaded the newest boost 1.57
  I am able to compile static libraries, but when i try to link dynamic libraries the program fails.</p>
  
  <p>my project-config.jam looks like this</p>
  
  <pre><code>import option ; 
  
  using msvc : 10.0 ;
  using python : 3.4 : C:\\Python34 ;
  
  option.set keep-going : false ; 
  </code></pre>
  
  <p>In order to compile static libraries even for 64 bit i my bjam looks like this</p>
  
  <pre><code>.\bjam.exe --adress-model=64 --with-python variant=release link=static --build-type=complete
  </code></pre>
  
  <p>this works find</p>
  
  <p>when i try build shared libraries I get an error for this command:</p>
  
  <pre><code>.\bjam.exe --adress-model=64 --with-python variant=release link=shared --build-type=complete
  </code></pre>
  
  <hr>
  
  <pre><code>msvc.link.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.dll
  bin.v2\libs\python\build\msvc-10.0\release\threading-multi\numeric.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
  
          call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 &gt;nul
  link /NOLOGO /INCREMENTAL:NO /DLL /MACHINE:X86 /MANIFEST /subsystem:console /out:"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.dll" /IMPLIB:"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.lib" /LIBPATH:"C:\Python34\libs"   @"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.dll.rsp"
          if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
  
  ...failed msvc.link.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python-vc100-mt-1_57.lib...
  ...skipped &lt;pstage\lib&gt;boost_python-vc100-mt-1_57.dll for lack of &lt;pbin.v2\libs\python\build\msvc-10.0\release\threading-multi&gt;boost_python-vc100-mt-1_57.dll...
  ...skipped &lt;pstage\lib&gt;boost_python-vc100-mt-1_57.lib for lack of &lt;pbin.v2\libs\python\build\msvc-10.0\release\threading-multi&gt;boost_python-vc100-mt-1_57.lib...
  msvc.link.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.dll
  bin.v2\libs\python\build\msvc-10.0\release\threading-multi\numeric.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86'
  
          call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 &gt;nul
  link /NOLOGO /INCREMENTAL:NO /DLL /MACHINE:X86 /MANIFEST /subsystem:console /out:"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.dll" /IMPLIB:"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.lib" /LIBPATH:"C:\Python34\libs"   @"bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.dll.rsp"
          if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
  
  ...failed msvc.link.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.dll bin.v2\libs\python\build\msvc-10.0\release\threading-multi\boost_python3-vc100-mt-1_57.lib...
  ...skipped &lt;pstage\lib&gt;boost_python3-vc100-mt-1_57.dll for lack of &lt;pbin.v2\libs\python\build\msvc-10.0\release\threading-multi&gt;boost_python3-vc100-mt-1_57.dll...
  ...skipped &lt;pstage\lib&gt;boost_python3-vc100-mt-1_57.lib for lack of &lt;pbin.v2\libs\python\build\msvc-10.0\release\threading-multi&gt;boost_python3-vc100-mt-1_57.lib...
  ...failed updating 4 targets...
  ...skipped 4 targets... &lt;/code&gt;
  </code></pre>
  
  <p>clear vcvars bat is getting called with x86 argument, i assume the mistake is here?</p>