Generate the dictionary for this class (vector<double>

Dear all,
I wrote a code using code generate by a MakeClass on several trees (It was with ROOT 5.10.00e). It works fine. Now I moved to ROOT 5.14.00 and I generate code using MakeClass.
First I need to add this by hand in the .h otherwise I have some problem when I try to compile my code !!! :
#include
#include <TTreeIndex.h>
using namespace std;

If I execute my code (at CERN or in the USA) I have the following problem :

Error in TChain::SetBranchAddress: The class requested (vector) for the branch “EVToolCentralJetPt” refer to an stl collection and do not have a compiled CollectionProxy. Please generate the dictionary for this class (vector)
etc …
Error in TChain::SetBranchAddress: The class requested (vector<int,allocator >) for the branch “passesSecondCutTable_bits” refer to an stl collection and do not have a compiled CollectionProxy. Please generate the dictionary for this class (vector<int,allocator >)
etc …
*** Break *** segmentation violation
Using host libthread_db library “/lib/tls/libthread_db.so.1”.
Attaching to program: /proc/29631/exe, process 29631
[Thread debugging using libthread_db enabled]
[New Thread -1208768832 (LWP 29631)]
0x007467a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2

I don’t understand why now I need to write these 2 class :
vector and vector<int,allocator >
I probably miss something !
It is possible to call the dictionary for these 2 class ?

Thanks a lot for your help
Best regards
Fabien

You must first load the dictionary for vector. To do so issue gROOT->ProcessLine("#include <vector>");

Cheers,
Philippe

Hi Philippe,
Thanks. I work fine but if I want to draw in a TCanvas I need to add before the line :
TApplication myapp(“myapp”,0,0);
but I have the following problem :
“Error in TApplication::TApplication: only one instance of TApplication allowed"
because of the : gROOT->ProcessLine(”#include ");
If I remove the line : TApplication myapp(“myapp”,0,0);
I don’t see my plots
any idea how can I solve my problem ?
Thanks again
Cheers
Fabien

Hi,
If I instantiate the TApplication : TApplication myapp(“myapp”,0,0); before
gROOT->ProcessLine("#include ");
it works !!!
Fabien