Hi Anton, You need to declare MyClass as a global variable and add #pragma link C++ global MyClass; in the proper linkdef (ie a linkdef used to call rootcint on an header seeing the declaration of MyClass). Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Anton Fokin Sent: Tuesday, November 20, 2001 7:20 AM To: roottalk@pcroot.cern.ch Subject: [ROOT] compiled variable access in CINT Hi rooters, a simple question: how can I access a compiled variable in CINT (RINT) ? TRint Rint(....); ... TMyClass *MyClass = new TMyClass(); ... Rint.Run(kTRUE); This is what I compile and when I run this code I get RINT prompt and I would like to access MyClass variable from RINT prompt. Is it possible? Probably not... Cheers, Anton
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET