4 Sep
2024
4 Sep
'24
12:09 p.m.
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