Unable to link boost_iostreams on macOS
When I try to build a script (e.g. vertical_EAS) on the current master branch, compiling fails with the error
ld: library not found for -lboost_iostreams clang: error: linker command failed with exit code 1 (use -v to see invocation)
although CMake reports that it found my local boost installation as well as iostreams:
-- Found Boost: /usr/local/lib/cmake/Boost-1.73.0/BoostConfig.cmake (found version "1.73.0") found components: iostreams
However, if I just try to link boost-iostreams outside of CORSIKA in a normal cpp script (using
-lboost_iostreams), clang has no problem.
The problem occurs on my macOS (Catalina 10.15.6) and makes it impossible for me to run CORSIKA (or at least CORSIKA scripts dependent on boost_iostreams). On another machine running macOS, we had exactly the same problem with boost_iostreams.