Compilation errors : hist.cc file in rootexamples(Phythia8)

hiiii

  I am facing a problem on compilation of "hist.cc" file in rootexample directory of pythia8153 . Following are the errors I am getting. Please help me to resolve it..My machine is 64 bit and I am using root_v5.30.00f.Linux-slc5-gcc4.3.

[amandeep@localhost rootexamples]$ make hist
g++ -I/home/amandeep/pythia8153/include -pthread -m64 -I/opt/root/include -m64 -L/opt/root/lib -lCore -lCint -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lGui -pthread -lm -ldl -rdynamic -L/home/amandeep/pythia8153/lib/archive -lpythia8 -llhapdfdummy hist.cc -o hist.exe
/tmp/cckaAaFw.o: In function main': hist.cc:(.text+0xe5): undefined reference toPythia8::Pythia::Pythia(std::basic_string<char, std::char_traits, std::allocator >)'
hist.cc:(.text+0x16e): undefined reference to Pythia8::Pythia::readString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)' hist.cc:(.text+0x1f7): undefined reference toPythia8::Pythia::readString(std::basic_string<char, std::char_traits, std::allocator >, bool)'
hist.cc:(.text+0x25a): undefined reference to Pythia8::Pythia::init(int, int, double)' hist.cc:(.text+0x399): undefined reference toPythia8::Pythia::next()'
hist.cc:(.text+0x478): undefined reference to Pythia8::Pythia::statistics(bool, bool)' hist.cc:(.text+0x516): undefined reference toPythia8::Pythia::~Pythia()'
hist.cc:(.text+0x532): undefined reference to `Pythia8::Pythia::~Pythia()'
collect2: ld returned 1 exit status
make: *** [hist] Error 1

Hi,

I have suggested attached patch to Torbjorn.

Cheers, Axel.
Pythia_rootxeamples_Makefile.diff (748 Bytes)