Re: guitest

From: Rene Brun <Rene.Brun_at_cern.ch>
Date: Thu, 14 Oct 2010 12:39:00 +0200


Patrick,

As indicated in the documentation of guitest.C, use

   root > .x guitest.C And you execute via the CINT interpreter)    root > .x guitest.C+ (and you use the natice compiler via ACLIC)

If you insist using your own main program, add #include <TClass.h> at the top of the file.
I have added it in the SVN trunk.
We systematically recommend to go away from "my main program syndrom", in particular with programs having a GUI. It is so much simpler to simply do ".x myscript.C+" ::)

Rene

Patrick Dupre wrote:
> Hello,
>
> Try to compile guitest.C I get the following error:
> guitest.C:
> guitest.C: In member function 'void
> TestDialog::HandleEmbeddedCanvas(Int_t, Int_t, Int_t, TObject*)':
> guitest.C:1368: error: invalid use of incomplete type 'struct TClass'
> /usr/local/root_v524/include/root/Rtypes.h:39: error: forward
> declaration of 'struct TClass'
> guitest.C: In member function 'void TestSliders::DoSlider(Int_t)':
> guitest.C:1731: error: invalid use of incomplete type 'struct TClass'
> /usr/local/root_v524/include/root/Rtypes.h:39: error: forward
> declaration of 'struct TClass'
>
> Is my installation wrong ?
>
> Thank.
Received on Thu Oct 14 2010 - 12:39:07 CEST

This archive was generated by hypermail 2.2.0 : Thu Oct 14 2010 - 17:50:01 CEST