Boost C++ Libraries: Ticket #1282: filesystem::directory_iterator(path) causes a dynamic link error https://svn.boost.org/trac10/ticket/1282 <p> This simple code will cause a link error when linked to the <strong>dynamic</strong> boost_filesystem-vc80-mt-1_34_1.lib. This problem is also present in 1.34. </p> <p> Btw linking to the <strong>static</strong> version works. </p> <pre class="wiki">int _tmain(int argc, _TCHAR* argv[]) { std::string filename("./tmp.txt"); boost::filesystem::path path(filename); boost::filesystem::directory_iterator iter(path); // &lt;- the culprit return 0; } </pre><p> Here is the link error </p> <pre class="wiki">1&gt;Boost bug.obj : error LNK2001: unresolved external symbol "unsigned int boost::filesystem::detail::not_found_error" (?not_found_error@detail@filesystem@boost@@3IA) </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1282 Trac 1.4.3 Beman Dawes Tue, 25 Sep 2007 15:05:02 GMT status, severity, milestone changed; resolution set https://svn.boost.org/trac10/ticket/1282#comment:1 https://svn.boost.org/trac10/ticket/1282#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Regression</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> <p> The code involved has changed quite a bit in the SVN trunk. The test case mentioned in the bug report is covered by the current operations_test, so should show up in testing for 1.35.0if there are still any problems. </p> <p> Note that operations_test is run with both static and dynamic linking. The static test has failed in the past on some platforms, and the dynamic test has failed on other platforms. Thus in any future trouble reports, please be sure to be very specific about the platform involved. </p> <p> Thanks, </p> <p> --Beman </p> Ticket