title: boost.python "DLL load failed" on WinXP, VisualStudio 2005
body: <p>I have problems importing a boost-python module on WinXP-32.
  I'm using python 2.6.6, boost.python 1.41 precompiled libs by boostpro and VC++8 (VisualStudio 2005).</p>
  
  <p>After compiling the piece of code below, I tried to import the resulting pyHELLO.pyd from the python command line and always get:</p>
  
  <blockquote>
    <p>"ImportError: DLL load failed: This
    application has failed to start
    because the application configuration
    is incorrect. Reinstalling the
    application may fix this problem."</p>
  </blockquote>
  
  <p>I re-installed python and tried other boost versions. But none of it helped.</p>
  
  <p>I have the corresponding boost dlls in the directory where I tried to import the module.</p>
  
  <p>The same code works with VC++9 under Win7.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>int sayHello() {
      cout &lt;&lt; "Hello  !" &lt;&lt; endl; 
  }
  
  
  BOOST_PYTHON_MODULE(pyBoostTest)
  {
      def("sayHello", sayHello);
  }
  </code></pre>
  
  <p>Any help highly appreciated.</p>