Re: [ROOT] enum data types

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Wed May 28 2003 - 23:42:24 MEST


Did you add a pragma in the LinkDef.h file to tell CINT to export the
enum to the dictionary? For example:

#pragma link C++ enum ESignals;

This is needed for enums NOT embedded in classes.


Cheers, Fons.


On Wed, 2003-05-28 at 18:03, John Pretz wrote:
> Hello,
> 
> I created a C++ file that has, among other things, an enumerated data type 
> defined.  When I copile the file into a shared object, and load the 
> object into root, I can't use the enum type.  If I just load the header 
> directly into the interpreter along with the shared object, everything is 
> OK.  Is this right?  It's not really a problem, but I wanted to see if 
> anyone has a workaround.
> 
> John
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET