Your code will not even compile with gcc.
You should declare
static const char * names[C+1];
This will be OK with CINT and gcc
Rene Brun
Salvatore Rappoccio wrote:
>
> Hi, All,
>
> I am wondering why CINT cannot handle static const char data members. The
> following code compiles fine if I use a compiled binary with KAI, but does
> not compile under CINT:
>
> class X {
>
> public:
>
> enum X_t { A=0, B, C, D};
>
> static const char * names[C];
>
> };
>
> const char * X::names[] = {
> "A", "B", "C"
> };
>
> How should I do this in CINT? I am using root 3.05/04 and CINT 5.15.85.
>
> Thanks,
> Sal Rappoccio
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET