Boost C++ Libraries: Ticket #13310: boost::filesystem::exists(".") fails on Mac OS Sierra https://svn.boost.org/trac10/ticket/13310 <p> I installed Boost 1.65.1 on Mac OS Sierra 10.12.6 using mac port. When I run the program tut1.cpp from the Boost Filesystem tutorial, the program fails to find files and directories that exist. The following simple test code returns 1 on linux and 0 on Mac OS: </p> <p> #include &lt;iostream&gt; #include &lt;boost/filesystem.hpp&gt; </p> <p> int main() { </p> <blockquote> <p> <em> This line should print 1 but it prints 0 on Mac OS std::cout &lt;&lt; boost::filesystem::exists(".") &lt;&lt; std::endl; </em></p> </blockquote> <blockquote> <p> return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13310 Trac 1.4.3 anonymous Thu, 23 Nov 2017 22:29:33 GMT <link>https://svn.boost.org/trac10/ticket/13310#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13310#comment:1</guid> <description> <p> EDIT: </p> <p> The apparent problem was solved by compiling the sample code with clang++ instead of g++. </p> </description> <category>Ticket</category> </item> </channel> </rss>