Re: [ROOT] Syntax error in TVirtualX.h

From: Rene Brun (Rene.Brun@cern.ch)
Date: Mon Jan 21 2002 - 18:20:21 MET


Hi Francois-Xavier & Patrick,

It looks like you do not define the right compiler options with VC++.
Are you running under CYGWIN or Visual Studio?

I suggest you try to build the Event program in $ROOTSYS/test.
If you are under CYGWIN, just do
  make distclean
  make

When compiling EventDict.cxx, for example, we have the following options:

Generating dictionary EventDict.cxx...
cl -O2 -G5 -GR -MD -DWIN32 -D_WINDOWS -nologo -DVISUAL_CPLUSPLUS \
-D_X86_=1 -D_DLL -MD -I'C:\home\brun\root\include' -c EventDict.cxx

Rene Brun


GENTIT Francois-Xavier DAPNIA wrote:
> 
>    Dear rooter,
>    I am working on Windows NT4 and my version of ROOT is 3.02/07.
>    Recently, we have tried, Patrick Jarry (Patrick.Jarry@cern.ch) and I, to
> adapt on Windows NT a software written for the test beam of CMS, and which
> is working ok on Unix. We face the following problem, which we do not know
> how to tackle :
>   All files compile ok, but the dictionnary generated by rootcint does not
> compile and gives the following types of errors:
> 
> BTCMSdict.cxx
> D:\root/include\TVirtualX.h(168) : error C2059: syntax error : 'constant'
> D:\root/include\TVirtualX.h(364) : error C2275: 'Window_t' : illegal use of
> this type as an expression
>         D:\root/include\GuiTypes.h(30) : see declaration of 'Window_t'
> D:\root/include\TVirtualX.h(364) : error C2275: 'Int_t' : illegal use of
> this type as an expression
>         D:\root/include\Rtypes.h(50) : see declaration of 'Int_t'
> D:\root/include\TVirtualX.h(364) : error C2275: 'Int_t' : illegal use of
> this type as an expression
>         D:\root/include\Rtypes.h(50) : see declaration of 'Int_t'
> 
>    I  thought it was due to the software calling TG classes not implemented
> on Windows, but it is not the case. I have not found any include of TG
> classes, and I have tried to compile and link with the new ROOT with
> Win32GDK getting the same problem.
>    If somebody has an idea, thanks a lot in advance.
> 
>           F.X. Gentit
>           DAPNIA/SPP CEN Saclay
>           tel : 01 69 08 30 38     fax : 01 69 08 64 28
>           web : http://home.cern.ch/~gentit/



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:39 MET