Opened 5 years ago
Last modified 5 years ago
#13310 new Bugs
boost::filesystem::exists(".") fails on Mac OS Sierra
Reported by: | anonymous | Owned by: | Beman Dawes |
---|---|---|---|
Milestone: | To Be Determined | Component: | filesystem |
Version: | Boost 1.65.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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:
#include <iostream> #include <boost/filesystem.hpp>
int main() {
This line should print 1 but it prints 0 on Mac OS std::cout << boost::filesystem::exists(".") << std::endl;
return 0;
}
Note:
See TracTickets
for help on using tickets.
EDIT:
The apparent problem was solved by compiling the sample code with clang++ instead of g++.