title: Using libxml2 in Visual Studio 2008 and Windows XP
body: <p>I have a weird problem when running an application that uses GNOME's <a href="http://xmlsoft.org/" rel="nofollow noreferrer">libxml2</a> under Visual Studio 2008 (VS2008-SP1) and Windows XP.</p>
  
  <p>I have two C++ projects: </p>
  
  <ul>
  <li>Project A (a library)</li>
  <li>Project B (an application that depends on Project A)</li>
  </ul>
  
  <p>Both under one VS solution.</p>
  
  <p><strong>Project A</strong> is statically compiled with libxml2.lib. I've added dependencies to the library in both projects <strong>A</strong> and <strong>B</strong>.</p>
  
  <p>Solution compiles perfectly. The only thing is, when I run it, I am getting the following error under Windows XP:</p>
  
  <p>"This application has failed to start because libxml2.dll was not found. Re-installing the application may fix this problem".</p>
  
  <p>I have tried this in two different Windows XP SP3 installations. And the weirdest thing is that it runs perfectly fine on Windows Vista, and I don't think it should be looking for DLL since it's statically compiled. Right?</p>
  
  <p>Any ideas?</p>