I have ROOT 5.16/00 installed on OSX 10.4.11. I’m trying to write a general utility class to run in CINT which will plot arbitrary rows or columns from a text file as a chosen TGraph variant. I want to do this using a template class i.e. TTextToGraph<TGraphVariant>. I have a helper class which converts the text file into arrays of doubles (TTextToVector), which I’ve tested and works fine as a dynamic library loaded into CINT with “.L libTTextToVector.dylib” .
Okay, now on to the problem. I’ve managed to get TTextToGraph to compile and made a dylib but when I try to load it into CINT I get the following error:
[quote]dlopen error: dlopen(/Users/hughdickinson/Documents/Work/Programs/TTextToGraph/./libTTextToGraph.dylib, 9): Symbol not found: __ZN12TTextToGraphI6TGraphED0Ev
Referenced from: /Users/hughdickinson/Documents/Work/Programs/TTextToGraph/./libTTextToGraph.dylib
Expected in: dynamic lookup
Load Error: Failed to load Dynamic link library /Users/hughdickinson/Documents/Work/Programs/TTextToGraph/./libTTextToGraph.dylib[/quote]
I’ve attached the source files for TTextToGraph and TTextToVector and the two linkDef files. Any help with this problem would be much appreciated. Maybe a class already exists to do what I’m trying to achieve?