Hi Experts,
I am using root-6.04/14 in Ubuntu 14.04 LTS. I am running .C code locally. I have tried to access :
vector<vector<float> >
vector<vector<int> >
using :
#ifdef __MAKECINT__
#pragma link C++ class vector<vector <float> >+;
#pragma link C++ class vector<vector <int> >+;
#end if
In my header file & then I compile my code.C as :
g++ code.C -o test03.exe -I$ROOTSYS/include -L$ROOTSYS/lib `root-config --cflags` `root-config --libs`
& run it, I got errors as :
Error in <TTree::Branch>: The class requested (vector<vector<float> >) for the branch "AK8_SDSJPt" is an instance of an stl collection and does not have a compiled CollectionProxy. Please generate the dictionary for this collection (vector<vector<float> >) to avoid to write corrupted data.
Error in <TTree::Branch>: The class requested (vector<vector<int> >) for the branch "nAK8_SDSJ" is an instance of an stl collection and does not have a compiled CollectionProxy. Please generate the dictionary for this collection (vector<vector<int> >) to avoid to write corrupted data.
To solve it I tried to genetrate the required dictionary with :
gInterpreter->GenerateDictionary("vector<vector<float> >","vector");
gInterpreter->GenerateDictionary("vector<vector<int> >","vector");
This created dictionaries called AutoDict_vector_vector_float____cxx.so
and AutoDict_vector_vector_int____cxx.so
Then, I am trying to compile the code.C using:
g++ code.C -o test03.exe -I$ROOTSYS/include -L$ROOTSYS/lib `root-config --cflags` `root-config --libs` -L$PWD AutoDict_vector_vector_float____cxx.so AutoDict_vector_vector_int____cxx.so
But I am still having the same error. Please help me to solve it.
Arjun