Boost logo

Boost Users :

From: Michel Morin (mimomorin_at_[hidden])
Date: 2024-09-04 12:09:57


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 list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net