Hi Federico, it might be that you have not the right binary ROOT distribution to match your default compiler. Please, try this: cd $ROOTSYS/test make guitest does this work? If so it might be you made a mistake copying the example and omitted by accident a method. Cheers, Fons. On Wed, 2002-10-02 at 09:56, Federico Roncarolo wrote: > Hello, > > I'm trying to compile the gui simple example given in > > http://root.cern.ch/root/hepvis98/newgui.html > > I use a makefile I used in many examples (also to compile the example > ROOTSYS/test/guitest.cxx). > > During compilation I get the error: > > main.o: In function `MyMainFrame::MyMainFrame(TGWindow const *, unsigned > int, unsigned int)': > main.o(.text+0x2e): undefined reference to `MyMainFrame virtual table' > main.o(.text+0x37): undefined reference to `MyMainFrame::TQObject virtual > table' > main.o: In function `main': > main.o(.text+0x5af): undefined reference to > `MyMainFrame::~MyMainFrame(void)' > main.o(.text+0x5e5): undefined reference to > `MyMainFrame::~MyMainFrame(void)' > collect2: ld returned 1 exit status > gmake: *** [main] Error 1 > > Am I not linking to any library I Normally don't use? > > I've RedHat 7.1, root 3.03/08. > > Federico > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:12 MET