Hi Michael, > the result is > > > First file not found > > Second file not found > > I expected only the second file to be not found.
This kind of issue can occur when the compiler used to compile libboost_filesystem is different from the one used to compile the .cpp file. (Though a link error often arises in these situations, this time it resulted in erroneous behaviors.) When using Homebrew's libboost_filesystem, which is compiled with Clang (or more precisely, Apple Clang), a similar issue occurred when compiling the .cpp file with g++-12. When I used the `clang++` command instead of the `g++-12` command, it worked correctly. Regards, Michel _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org https://lists.boost.org/mailman/listinfo.cgi/boost-users