Test.cxx
namespace ROOT
{
Int_t array[] = {0};
}
#include "TObject.h"
class Test: public TObject
{
Test ()
{
}
~Test ()
{
}
ClassDef (Test, 0);
};
ClassImp (Test);
LinkDef.h
#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…
[/quote]
so my question: is this CINT limitation or bug (the only valid namespace in this case seems to be std:))