Boost C++ Libraries: Ticket #12143: Preferred separator not exported in dll under Windows https://svn.boost.org/trac10/ticket/12143 <p> Under windows(10) with MSVC14 compiler, I get the following linking error: </p> <pre class="wiki">Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "__declspec(dllimport) public: static wchar_t const boost::filesystem::path::preferred_separator" (__imp_?preferred_separator@path@filesystem@boost@@2_WB) bfs D:\Info\cvisd\bfs\bfs\main.obj 1 Error LNK1120 1 unresolved externals bfs D:\Info\cvisd\bfs\x64\Release\bfs.exe 1 </pre><p> I get it on both amd64 and i386 if I </p> <pre class="wiki">#define BOOST_ALL_DYN_LINK </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12143 Trac 1.4.3 anonymous Thu, 21 Apr 2016 14:11:46 GMT <link>https://svn.boost.org/trac10/ticket/12143#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12143#comment:1</guid> <description> <p> This happens on both: </p> <ol><li>autolinking vs </li><li>explicit linking </li></ol> </description> <category>Ticket</category> </item> <item> <author>florian jacomme <florian@…></author> <pubDate>Sun, 04 Sep 2016 09:39:36 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/12143#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12143#comment:2</guid> <description> <pre class="wiki">#define BOOST_ALL_DYN_LINK #include &lt;boost/filesystem.hpp&gt; int main() { assert(boost::filesystem::path::preferred_separator == L'\\'); } </pre><p> is working as expected (Win10 + MSVC14). </p> <p> Maybe there was a problem when building your libraries. </p> </description> <category>Ticket</category> </item> </channel> </rss>