<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're building your application, you are not requesting DLL linking. What'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++ -> Code Generation -> Runtime Library)<br> </blockquote><div><br></div><div>The variable that needs to be defined is "BOOST_ALL_DYN_LINK". I actually had /MDd already set. Thanks for pointing me on the right track. Here's the resolution (the nesting represents an included file).</div><div><br></div><div>#include <boost/filesystem.hpp></div><div><br></div><div> # include <boost/filesystem/config.hpp><br></div><div><br></div><div> //<br> // If we'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 <boost/config/auto_link.hpp></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: "lib" for static libraries otherwise "".</div><div> ...</div><div><br> *************************************************/<br></div><div> //<br> // select linkage opt:<br> //<br> #if (defined(_DLL) || defined(_RTLDLL)) && defined(BOOST_DYN_LINK)<br> # define BOOST_LIB_PREFIX<br> #elif defined(BOOST_DYN_LINK)<br> # error "Mixing a dll boost library with a static runtime is a really bad idea..."<br> #else<br> # define BOOST_LIB_PREFIX "lib"<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 'install' 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>