Re: [filesystem] why is this file not found?
Michel Morin via Boost-users <[email protected]> Wed, 4 Sep 2024 21:09:57 +0900
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <CAO=jbbq2pz1tSDyHk=phpfKM3+-sdR7YS+=zAF3tSx9rUeO=QQ@mail.gmail.com> |
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