Re: Compiling under rsplus
Pasha Murat (murat@cdfsga.fnal.gov)
Mon, 7 Sep 1998 16:29:17 -0500 (CDT)
William Hamish Bell writes:
 > 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?
 
Hi - 
	you need to tell the linker where to look for the ROOT shared libs. 
See Makefile in $ROOTSYS/test for the example of how to do it.
					Regards, Pasha.