Problem in accessing a branch of vector<vector <int> >

From: Sandhya Jain <Sandhya.Jain_at_cern.ch>
Date: Thu, 19 Jan 2012 11:21:27 +0000


Dear rooters,
I defined a set of branchs of vector<vector<int> > and vector<vector<float> > in a tree called "myEvent" in the main Ntuple . But now, when I am trying to access it, it shows me an error: Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

To create the dictionary, in root I did: gInterpreter->GenerateDictionary("vector<vector<float> >","vector"); gInterpreter->GenerateDictionary("vector<vector<int> >","vector");

This created dictionaries called AutoDict_vector_vector_float____cxx.s and AutoDict_vector_vector_int____cxx.so Then, I am trying to compile the .C file created by MakeClass using g++ -Wno-deprecated myEvent.C -o myEvent -I$ROOTSYS/include -I$PWD -L$ROOTSYS/lib `root-config --cflags` `root-config --libs` -L$PWD AutoDict_vector_vector_float____cxx.so AutoDict_vector_vector_int____cxx.so

which gives me an error pasted above.

Could anyone please help me understanding what is it that am doing wrong or may be missing?

Thanks & Regards
Sandhya Received on Thu Jan 19 2012 - 12:21:33 CET

This archive was generated by hypermail 2.2.0 : Thu Jan 19 2012 - 23:50:01 CET