Re: Compiling under rsplus

From: Pasha Murat (murat@cdfsga.fnal.gov)
Date: Mon Sep 07 1998 - 23:29:17 MEST


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.



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:37 MET