On 23/07/2021 07:57, Stefano Gragnani via Boost-users wrote:
The development system is: MacBook Pro Intel i9 MacOS Big Sur 11.4 gcc version 11.1.0 (Homebrew GCC 11.1.0_1) clang version 12.0.0
I'm having trouble compiling some examples from the book 'Boost C ++ Application Development Cookbook’. The problem occurs *only* *with g ++,* *with clang there is no error.* Mistakes only occur when linking to -lboost_program_options, -lboost_system and -lboost_filesystem, with any other library (eg -lboost_chrono) everything is fine.
Did you compile the libraries with g++ or are they clang compiled? I would expect that mixing the 2 would cause issues. -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus