Hi Robert, you have to compile the stubs and link them with the other routines in a shared library. As far as I know they can not be sourced. If the original routines are fortran you will have to make a C include file describing the prototypes of the functions. Cheers, Fons. Robert Casties wrote: > > Hi Fons! > > On Tue, 24 Jun 1997, Fons Rademakers wrote: > > > You can interface from a script to shared libraries containing > > C function, but you will have to use rootcint to generate the > > interface stubs. Look in rootcint -? > > Does that mean, that I can source the dictionary generated by rootcint in > the interpreter? (I tried but it seemed not to work.) > > Or does it mean that I have to compile the dictionary (and the library?) > into an interface library? That's what I want to do anyway in the long > run, but for testing and cross-platform use it would be nice to use the > existing shared libraries (actually it was FORTRAN) and an interface > script. > > Or does it mean that I have to use rootcint on the library sources? (Well > it's FORTRAN ;-( > > Cheers > Robert > > > and http://root.cern.ch/root/roottalk/0442.html > > to see what to do. Specifically, add for each function a line > > like > > > > #pragma link C++ function Strip; > > #pragma link C function copy; > > > > to your LinkDef.h file. > > > > Cheers, Fons. -- 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