Re: Compiling under rsplus

Rene Brun (Rene.Brun@cern.ch)
Tue, 08 Sep 1998 00:06:08 +0200


When you link your program, you must specify the list of Root
libraries (-L$ROOTSYS/lib -lRoot -lCint) as shown in the page
http://root.cern.ch/root/Availability.html

Rene Brun

William Hamish Bell wrote:
>
> 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
>
> ____________________________________