Hi Georges, Instead of #pragma link C++ global Namespace::kGlobalVar; use #pragma link C++ namespace Namespace; This will create a dictionary entry for ALL the global variables declared in "Namespace" in the header files passed to rootcint. Philippe. > -----Original Message----- > From: owner-roottalk@pcroot.cern.ch > [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of George A. Heintzelman > Sent: Wednesday, October 18, 2000 4:45 PM > To: roottalk@pcroot.cern.ch > Subject: [ROOT] Linking in variables in namespaces > > > > Rooters, > > I was trying to link some namespace-defined variables into CINT. I > seemed to succeed getting namespaced classes in just by specifying the > fully-qualified name; and in getting functions in by specifying the > full prototype (ie #pragma link C++ function Namespace::functionname(par > type1, partype2). But I could not get globals to link in. doing just: > > #pragma link C++ global Namespace::kGlobalVar; > > did not work; rootcint complained about an unknown global variable. > > The variable is defined in one of the header files like so: > > namespace Namespace { > extern Double_t kGlobalVar; > } > > I'm using ROOT 2.25/02 (CINT 5.14.47). Am I doing something wrong? > > George Heintzelman > gah@bnl.gov > > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET