<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Vladimir,</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><span></span>
It seems that when you&#39;re building your application, you are not requesting DLL linking. What&#39;s your<br>
command line? I think you need to have either /MD or /MDd option on the command line, or select same<br>
under VS project properties (C/C++ -&gt; Code Generation -&gt; Runtime Library)<br>
</blockquote><div><br></div><div>The variable that needs to be defined is &quot;BOOST_ALL_DYN_LINK&quot;.  I actually had /MDd already set.  Thanks for pointing me on the right track.  Here&#39;s the resolution (the nesting represents an included file).</div><div><br></div><div>#include &lt;boost/filesystem.hpp&gt;</div><div><br></div><div>  #  include &lt;boost/filesystem/config.hpp&gt;<br></div><div><br></div><div>    //<br>    // If we&#39;re importing code from a dll, then tell auto_link.hpp about it:<br>    //<br>    #if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_FILESYSTEM_DYN_LINK)<br>    #  define BOOST_DYN_LINK<br>    #endif<br>    //<br>    // And include the header that does the work:<br>    //<br>    #include &lt;boost/config/auto_link.hpp&gt;</div><div><br></div><div>      /*************************************************</div><div><br></div><div>      USAGE:<br>      ~~~~~~</div><div>      ...<br>      BOOST_DYN_LINK:           Optional: when set link to dll rather than static library.</div><div>      ...</div><div>      BOOST_LIB_PREFIX:     &quot;lib&quot; for static libraries otherwise &quot;&quot;.</div><div>      ...</div><div><br>      *************************************************/<br></div><div>      //<br>      // select linkage opt:<br>      //<br>      #if (defined(_DLL) || defined(_RTLDLL)) &amp;&amp; defined(BOOST_DYN_LINK)<br>      #  define BOOST_LIB_PREFIX<br>      #elif defined(BOOST_DYN_LINK)<br>      #  error &quot;Mixing a dll boost library with a static runtime is a really bad idea...&quot;<br>      #else<br>      #  define BOOST_LIB_PREFIX &quot;lib&quot;<br>      #endif</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">Unlike other build systems, install is not special-cased in Boost.Build, so you can just specify desired properties<br>
when building the &#39;install&#39; target, e.g.:<br>
<br>
.\b2 --build-dir=%BUILD_DIR% architecture=x86 address-model=64 runtime-link=shared threading=multi link=shared variant=debug install<br></blockquote><div><br></div><div>Great!  Will give this a try. </div></div><br></div></div>