Hi,
I seemed to be hitting a CINT limitation with arrays that I can’t figure out how to slove (see example below).
If I reduce the dimension of acc by one (remove [NMC]
for eg) then it compiles just fine.
How do I get around this ?
Thanks
Anyes
//test.C
{
static const int NGEN=3;
static const int NTL=4;
static const int NJB=8;
static const int NMC=10;
void dum(int D[NGEN][NTL][NMC],int acc[NGEN][NTL][NJB][NMC]){
}
}
.L test.C+g
Info in <TUnixSystem::ACLiC>: creating shared library /Users/anyes/MyWork/Analysis/Code/myMacro/Xs/./test_C.so
Cint internal error ary parameter dimension :0:
Warning: Error occurred during dictionary source generation
!!!Removing /Users/anyes/MyWork/Analysis/Code/myMacro/Xs/./tmp_0_LV5wJy.cxx /Users/anyes/MyWork/Analysis/Code/myMacro/Xs/./tmp_0_LV5wJy.h !!!
Error: rootcint: error loading headers...
Error in <ACLiC>: Dictionary generation failed!
Info in <ACLiC>: Invoking compiler to check macro's validity
/Users/anyes/MyWork/Analysis/Code/myMacro/Xs/./test.C:7: warning: unused parameter 'D'
/Users/anyes/MyWork/Analysis/Code/myMacro/Xs/./test.C:7: warning: unused parameter 'acc'
Info in <ACLiC>: The compiler has not found any problem with your macro.
Probably your macro uses something rootcint can't parse.
Check [root.cern.ch/root/Cint.phtml?limitations](http://root.cern.ch/root/Cint.phtml?limitations) for Cint's limitations.