Compiling under rsplus

William Hamish Bell (wbell@physics.gla.ac.uk)
Sun, 6 Sep 1998 20:32:20 +0100 (BST)


Hi,

I have constructed a very simplistic C file which as far as the code goes
runns perfectly under the interpreter. Then I add the needed header
files:

#include "TFile.h"
#include "TNtuple.h"
#include "TObject.h"
#include "TStorage.h"

and use the command xlC -w -O -I$ROOTSYS/include -I/usr/lpp/xlC/include
-I/usr/include write_ntuple_prog.C

The result of this is that I receive the errors:

ld: 0711-317 ERROR: Undefined symbol: TObject::operator delete(void*)
ld: 0711-317 ERROR: Undefined symbol: .TStorage::ObjectAlloc(unsigned long)
ld: 0711-317 ERROR: Undefined symbol: .TNtuple::TNtuple(const char*,const
char*,const char*,int)
ld: 0711-317 ERROR: Undefined symbol: .TFile::TFile(const char*,const
char*,const char*,int)

What should I do to rubish the afore mentioned annoyances?

Regards,

Will

____________________________________

William Hamish Bell

Department of Physics and Astronomy,
University of Glasgow,
Glasgow,
G12 8QQ
Scotland

____________________________________