Compilation errors : file in rootexamples(Phythia8)


  I am facing a problem on compilation of "" 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 -o hist.exe
/tmp/cckaAaFw.o: In function main': undefined reference toPythia8::Pythia::Pythia(std::basic_string<char, std::char_traits, std::allocator >)' undefined reference to Pythia8::Pythia::readString(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, bool)' undefined reference toPythia8::Pythia::readString(std::basic_string<char, std::char_traits, std::allocator >, bool)' undefined reference to Pythia8::Pythia::init(int, int, double)' undefined reference toPythia8::Pythia::next()' undefined reference to Pythia8::Pythia::statistics(bool, bool)' undefined reference toPythia8::Pythia::~Pythia()' undefined reference to `Pythia8::Pythia::~Pythia()'
collect2: ld returned 1 exit status
make: *** [hist] Error 1


I have suggested attached patch to Torbjorn.

Cheers, Axel.
Pythia_rootxeamples_Makefile.diff (748 Bytes)