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

From: Brett Viren (bv@bnl.gov)
Date: Sun Aug 19 2001 - 01:13:17 MEST


cstrato@EUnet.at writes:
 > 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?

Yes.

 > How should the macro look like?

Take a look at the test/guiviewer* files and the entry for
guiviewerDict at the end of test/Makefile.

Basically, you need a LinkDef.h file and to generate the dictionary by
runny "rootcint" like:

	rootcint -f guitestCint.cc -c guitest.h guitestLinkdef.h

Then compile and link the generated guitestCint.cc and your
guitest.cxx.

-Brett.



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