sibyll linker error when compiling specific examples on MacOS
When I try to build/compile specific examples (for example the em_shower.cpp or radio_em_shower.cpp, but NOT for the corsika.cpp), I get the linker error:
Undefined symbols for architecture x86_64:
"_cnucsignuc_", referenced from:
void corsika::sibyll::NuclearInteractionModel<corsika::sibyll::HadronInteractionModel>::initializeNuclearCrossSections<corsika::Environment<corsika::IRefractiveIndexModel<corsika::IMediumPropertyModel<corsika::IMagneticFieldModel<corsika::IMediumModel> > > > >(corsika::Environment<corsika::IRefractiveIndexModel<corsika::IMediumPropertyModel<corsika::IMagneticFieldModel<corsika::IMediumModel> > > > const&) in radio_em_shower.cpp.o
corsika::sibyll::NuclearInteractionModel<corsika::sibyll::HadronInteractionModel>::printCrossSectionTable(corsika::Code) const in radio_em_shower.cpp.o
ld: symbol(s) not found for architecture x86_64
This happens on my MacOS 10.15, and I tried it with both clang12 and gcc11 as a compiler.
Does anyone have an idea what the problem might be? Maybe @lukas has encountered such an error before?