[ROOT] Problem compiling GUI code: How to compile guitest.C?

From: cstrato@EUnet.at
Date: Sat Aug 18 2001 - 22:50:42 MEST


Dear Fons, dear Rooters:

How do I compile the “guitest.C” example in the tutorials
as standalone program, especially when I separate the
file into “guitest.h” and “guitest.cxx”?
Do I need to create a dictionary file?
How should the macro look like?

The reason I ask is that I created a GUI by defining the classes
analogously to those in guitest.C where all GUI objects are
created by composition instead of inheritance:
   class TestMainFrame {
      private:
         TGMainFrame *fMain;
         etc
   }

This GUI works fine as root macro, however, when compiling
the files (*.h and *.cxx) using a macro, I get lots of errors
after linking the root libraries, that “TGMainFrame::TGMainFrame”
and all other TGClasses are not defined.

Thank you very much in advance.

Best regards
Christian
----------------------------------
C.h.r.i.s.t.i.a.n  S.t.r.a.t.o.w.a
V.i.e.n.n.a,  A.u.s.t.r.i.a



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:58 MET