<div class="gmail_quote">2010/3/26 Federico Golfrè Andreasi <span dir="ltr"><<a href="mailto:federico.golfre@gmail.com">federico.golfre@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Hi !<br><br>I'm trying to find out how to link boost libraries under windows to a visual studio VC++ project (that will be a .dll library).<br><br>Where can I find some information ?!<br></blockquote><div><br>I've take that from an old doc, but I assume the flag is still the same. <br> <br>"If you are linking to a dynamic runtime, then you can choose to link to either a static or a dynamic Boost library, the default is to do a static link. You can alter this for a specific library <em>whatever</em> by defining BOOST_WHATEVER_DYN_LINK to force Boost library <em>whatever</em> to be linked dynamically. Alternatively you can force all Boost libraries to dynamic link by defining BOOST_ALL_DYN_LINK."<br>from: <a href="http://www.boost.org/doc/libs/1_33_1/more/getting_started.html">http://www.boost.org/doc/libs/1_33_1/more/getting_started.html</a><br> </div> <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I've compiled the boost libraries and followed the instruction found at:<br> <a href="http://www.boost.org/doc/libs/1_35_0/more/getting_started/windows.html" target="_blank">http://www.boost.org/doc/libs/1_35_0/more/getting_started/windows.html</a><br><br>but when I build the project it gives me an error trying to find a libboost_filesystem-vc80-mt-gd-1_41.lib,<br> but no one libraries build starts with the 'lib' prefix ?<br>Why he search for them ?<br></blockquote><div><br>By default (I think it is default) Boost will autolink the static libraries, which are named (on Windows) libboost_something.lib. So you will have to tell Boost it should link to dynamic libraries. (See the quotation above).<br> <br>regards,<br>Norbert <br></div></div>