Dear Andy,
THe problem does not reproduce on my latest version. I may have changed
something lately. Or probably, there is some more complication. At least
the class worked fine with bare cint/makecint.
In case you still have problem, try #ifndef __CINT__ as workaround.
class AClass {
public:
enum Enum {
a = 1,
b = 2
} ;
private:
#ifndef __CINT__
static const Enum first_ ;
#endif
} ;
Basically, #pragmas should have nothing to do with this.
Thank you
Masaharu Goto
======================================================
Hi,
another problem which I'm not able to solve myself. An example is a
simple class:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
// AClass.hh
class AClass {
public:
enum Enum {
a = 1,
b = 2
} ;
private:
static const Enum first_ ;
} ;
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Running rootcint on it gives me a message I cannot understand:
salnikov@percheron [266] rootcint -f AClassDict.cc -c AClass.h
Note: operator new() masked 1c
Note: operator delete() masked 1c
Error: No symbol AClass::first_ in current scope FILE: LINE:0
Error loading headers...
I tried whatever #pragmas I could imagine only - no difference at all.
The main problem seems to be with the const-ness of the field
declaration, it works OK when "first_" is non-const. Do I have any
chance to compile it as it is, without removing const?
Cheers,
Andy.
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:37 MET