Inclduing Detetcor.hpp into objects leads to linking error
During the discussions for !254 (merged), it turned out that it would be convenient to have functions like
TRack::GetIntercept(std::shared_ptr<Detetcor>
in order to not expose technicalities to the user in the modules. I started moving this functionality in https://gitlab.cern.ch/lhuth/corryvreckan/-/tree/fix_getIntercept
I just got stuck with a linking error. See below. IF someone has the solution?
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/CorryvreckanObjects.dir/GblTrack.cpp.o: in function `corryvreckan::GblTrack::getIntercept(std::shared_ptr<corryvreckan::Detector>) const':
/home/lhuth/software/corryvreckan/src/objects/GblTrack.cpp:30: undefined reference to `corryvreckan::Detector::getType[abi:cxx11]() const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: /home/lhuth/software/corryvreckan/src/objects/GblTrack.cpp:31: undefined reference to `corryvreckan::Detector::getName[abi:cxx11]() const'
collect2: error: ld returned 1 exit status
make[2]: *** [src/objects/CMakeFiles/CorryvreckanObjects.dir/build.make:333: src/objects/libCorryvreckanObjects.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:518: src/objects/CMakeFiles/CorryvreckanObjects.dir/all] Error 2
make: *** [Makefile:163: all] Error 2