namespace ROOT { Int_t array[] = {0}; } #include "TObject.h" class Test: public TObject { Test () { } ~Test () { } ClassDef (Test, 0); }; ClassImp (Test);

#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class Test+; #endif // __CINT__
$ rootcint -f TestDic.cxx -c Test.cxx LinkDef.h:

[quote]Error: array initialization FILE:Test.cxx LINE:3
Syntax Error: array[] Maybe missing ‘;’ FILE:Test.cxx LINE:3
Error: Too many ‘}’ FILE:Test.cxx LINE:4
Warning: Error occured during reading source files
Warning: Error occured during dictionary source generation
!!!Removing TestDic.cxx TestDic.h !!!
Error: rootcint: error loading headers…
so my question: is this CINT limitation or bug (the only valid namespace in this case seems to be std:))

Try ROOT v5.06.00. It seems that I have already fixed this problem.


Hi Thanks
I’m sorry I didn’t try it with the new version before posting