Problem compiling a MakeClass() output

Hi everyone,

I am running ROOT 516 and I produced a .h and .C file with running MakeClass on a TTree.
I included the following:


since some branches are vectors. Also, I had to uncomment some lines in the header where variables and branches were defined twice.

When I try to compile after these steps with:

root [0] .L CollectionTree.C++

I get the following error:

Info in TUnixSystem::ACLiC: creating shared library /nfs/atlas/pool01/kkoeneke/data/5111/./

cc1plus: Cannot allocate 1095540480 bytes after allocating 23805952 bytes
g++: /nfs/atlas/pool01/kkoeneke/data/5111/./filegqh8dC.o: No such file or directory
Error in : Compilation failed!
root [1]

Can anybody tell me what this is? I can’t really believe that root is trying to allocate a GB of memory???

Thanks a lot already for your help,



Take a look the generated CollectionTree.h one (or more of the array) must not have their static size set properly.