title: How compile a DLL which is using boost library?
body: <p>I'm working on a DLL project in VS 2010, I want to use boost mutex in some part of my code. but when I compile project to release final DLL, I get this linkage error:</p>
  
  <pre><code>LINK : fatal error LNK1104: cannot open file 'libboost_date_time-vc100-mt-1_49.lib'
  </code></pre>
  
  <p>I've already compiled boost with this command:</p>
  
  <pre><code>bjam install --toolset=msvc variant=release link=static threading=multi runtime-link=static
  </code></pre>
  
  <p>&amp; I've a file named <code>libboost_date_time-vc100-mt-s-1_49.lib</code>, when I change configuration type of my project from Dynamic Linked Library (DLL) to Static Library, the project builds successfully, but I need to release only as a DLL file (&amp; my final DLL CAN NOT have any dependency to other external DLLs). I know the problem causes by compilation of boost, but I don't know how should I recompile it<br/>
  Any guideline?</p>