I have a problem when I try to use the TSpectrum class.
I’m using cmake to compile a binary from a code that works fine, but if I declare a variable TSpectrum, I get the following error when I run the macro (cmake and make gives no errors, it compiles fine):
/cvmfs/sft.cern.ch/lcg/app/releases/ROOT/5.34.34/x86_64-cc7-gcc48-opt/root/bin/root.exe: symbol lookup error: ~/WA105_LightSoft/build/lib/libLightSoft.so: undefined symbol: _ZN9TSpectrumC1Eif
And if I do filt:
bash-4.2$ c++filt -n _ZN9TSpectrumC1Eif TSpectrum::TSpectrum(int, float)
I think it may be cased by a bad definition of the libraries, but then I don’t understand why I can use all the other ROOT classes without problems (TH, TF…). I don’t know if it is a cmake or ROOT problem…
I attach my CMakeLists.txt
Any help is welcome!
CMakeLists.txt (1.8 KB)