Hi,
The error message I've got (trying to execute
gSystem->Load("myLibName.so");) was "dlopen error: myLibName.so: undefined
symbol TAFextPropHit.kSignalCount".
Although int/enum-like static constants may be initialized inside a class
(according to the ANSI C++ Standard), your example _does_work_. I suppose
that in my case the compiler made kSignalCount a compile-time constant, thus
preventing ROOT to access it in the run time.
Cheers,
Andriy.
> Hi,
>
> I think the initialization of a static data member should happen
> outside of the class definition
>
> class TAFextPropHit {
> public:
> static const Int_t kSignalCount;
> };
> const Int_t TAFextPropHit::kSignalCount=8;
>
> What kind of error do you get?
> cheers
> Jiri
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:06 MET