Dear Rooters,
I realized a gui but it is a script. I need to compile it and I have
almost complete the work.
Unfortunately I cannot compile the code because of the line:
RQ_OBJECT("Viewer")
that is mandatory.
I use the follow class declaration:
class Viewer {
RQ_OBJECT("Viewer")
private:
TGTransientFrame *fMain; TGCompositeFrame *fF3, *fF5; TGGroupFrame *fF6, *fF7; TGButton *fOkButton, *fCancelButton, *fStartB, *fStopB; TGButton *fBtn1, *fBtn2, *fChk1, *fChk2, *fRad1, *fRad2; TGPictureButton *fPicBut1; TGCheckButton *fCheck1; TGCheckButton *fCheckMulti; TGListBox *fListBox; TGComboBox *fCombo; TGTab *fTab; TGTextEntry *fTxt1, *fTxt2; TGLayoutHints *fL1, *fL2, *fL3, *fL4; TRootEmbeddedCanvas *fEc1; Int_t fFirstEntry; Int_t fLastEntry; Bool_t fDrawLAV; Bool_t kBoxCreated; //TClonesArray *BoxVector; TBox **BoxVector;
public:
Viewer(const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h,
UInt_t options = kVerticalFrame);
virtual ~Viewer();
// slots
void DoClose();
void CloseWindow();
void DoOK();
void DoCancel();
void DoTab(Int_t id);
void HandleButtons(Int_t id = -1);
void HandleEmbeddedCanvas(Int_t event, Int_t x, Int_t y, TObject *sel);
};
and this is the error message returned:
g++ -g -pthread -m64
-I/afs/cern.ch/sw/lcg/app/releases/ROOT/5.24.00/slc4_amd64_gcc34/root/include
-c MainFrame.cc -o MainFrame.o
In file included from MainFrame.cc:4:
Viewer.hh:24: error: expected identifier before string constant Viewer.hh:24: error: expected `,' or `...' before string constant Viewer.hh:24: error: ISO C++ forbids declaration of `RQ_OBJECT' with no type Viewer.hh:24: error: ISO C++ forbids declaration of `parameter' with no typemake: *** [MainFrame.o] Error 1
I'll be grateful for any help.
Vito Received on Sun Oct 18 2009 - 20:59:05 CEST
This archive was generated by hypermail 2.2.0 : Sun Oct 18 2009 - 23:50:02 CEST