Hi Robert, to add functions or globals or constants to the dictionary you have to specify them via the LinkDef.h file (do rootcint -? to see more about the LinkDef.h file). To specify these non class objects add lines like: #pragma link C++ global kTRUE; #pragma link C++ global kFALSE; #pragma link C++ global gDebug; #pragma link C++ function Strip; #pragma link C++ function StrDup; to your LinkDef.h in addition to the #pragma link C++ class TApplication; lines. Cheers, Fons. Robert Casties wrote: > > Hello! > > Is it possible to compile some procedures which are not part of a class > into a shared library? > > rootcint complains about "undefined class" and the procedures are not to > be found after (sucessfully) loading the library. > > The examples deal only with classes, do I have to put the procedures into > a class? > > Thanks > Robert -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland Phone: +41 22 7679248 E-Mail: Fons.Rademakers@cern.ch Fax: +41 22 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:26:19 MET