I’ve been getting some mysterious error messages recently, but so far trying different codes has made them go away. This time I am not sure how to get around it, and I don’t understand the error message in the first place, so perhaps it’s time to find the real problem!
Here is the error message when I try to run a simple script with compiling steps:
* ROOT v5.34/09 * root  Processing testJFTrackFit.C+... Info in <TUnixSystem::ACLiC>: creating shared library /Users/jfcaron/Projects/Proto2BeamTest2/./testJFTrackFit_C.so In file included from /Users/jfcaron/Projects/Proto2BeamTest2/testJFTrackFit_C_ACLiC_dict.cxx:17: In file included from /Users/jfcaron/Projects/Proto2BeamTest2/testJFTrackFit_C_ACLiC_dict.h:18: /opt/local/include/root/G__ci.h:971:7: warning: private field 'type' is not used [-Wunused-private-field] int type; ^ /opt/local/include/root/G__ci.h:972:7: warning: private field 'tagnum' is not used [-Wunused-private-field] int tagnum; ^ /opt/local/include/root/G__ci.h:973:7: warning: private field 'typenum' is not used [-Wunused-private-field] int typenum; ^ /opt/local/include/root/G__ci.h:975:19: warning: private field 'isconst' is not used [-Wunused-private-field] G__SIGNEDCHAR_T isconst; ^ /opt/local/include/root/G__ci.h:977:29: warning: private field 'dummyForCint7' is not used [-Wunused-private-field] struct G__DUMMY_FOR_CINT7 dummyForCint7; ^ 5 warnings generated. Undefined symbols for architecture x86_64: "JFTrackFit::JFTrackFit(std::map<int, double, std::less<int>, std::allocator<std::pair<int const, double> > >)", referenced from: testJFTrackFit() in testJFTrackFit_C_ACLiC_dict.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error in <ACLiC>: Compilation failed! Error: Function testJFTrackFit() is not defined in current scope :0: *** Interpreter error recovered ***
As I said, I’ve had this kind of error message come up a lot recently, but in other cases it’s gone away after trying random stuff, but I don’t know the origin of this kind of error.
The code that is used is attached to this message, I just have the files in the same working directory and do: root -l testJFTrackFit.C+.
My ROOT is compiled from MacPorts with the following version & variants: