RE:Re: enum problem?

From: Masaharu Goto (MXJ02154@nifty.ne.jp)
Date: Sat Aug 08 1998 - 09:34:00 MEST


Matt,

I'm sorry for being not able to resolve the problem, but I've never seen
this kind of problem in any version. The enum works perfectly fine on my
machine. 

I'll post this message to roottalk mailing group, asking if anybody has idea.

Rooters, 
 Does anybody have seen following problem reported by Matt Gerassimoff? When
he has

  enum A { X, Y, Z };

he gets an error that ';' is missing. But this works fine on my machine.
And when he has

  enum A { X, Y, Z; };

he gets expeced result. 

Masaharu Goto

---------------------------------------------------------------------------
Thanks for all the help.  I really do appreciate it.  But ... I am using
cint version 5.13.66 (if that matters?). I got the file from
ftp://hpsalo.cern.ch/root/cint5.13.tar.gz (which is 5.13.66). Anyways,
here is the output of cint:

% cint -p -Dlinux bool.h qglobal.h
Error: QtDebugMsg,QtWarningMsg,QtFatalMsg Missing ';' FILE:qglobal.h LINE:441
%

And here is the problem line:
enum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg };

Then I changed it to:
enum QtMsgType { QtDebugMsg, QtWarningMsg, QtFatalMsg; };

and every thing worked fine.  Is it a problem with version 5.13.66?
I built it as described in the README, set the environment variables
also and just ran it:

% sh setup platform/linux2.0
...
% cint -p -Dlinux bool.h qglobal.h
...

The output is what I got. I hate to be such a
pest ;) but if it is a version problem, where do I get 5.13.67?  Again
thanks for all the help.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:36 MET