How to make tutorials/pythia/pythiaExample.C

Hi

I try to make tutorials/pythia/pythiaExample.C by makefile.
But I can’t see how to make this example.
This is my makefile.

TARGETS=pythiaExample

ROOTFLAGS = $(shell root-config --cflags)
ROOTLIBS  = $(shell root-config --libs)

CXXFLAGS  = -Wall -O2 $(ROOTFLAGS)
CXXLIBS   = $(ROOTLIBS)
        
all: $(TARGETS)

pythiaExample: pythiaExample.o
        g++ -o $@ pythiaExample.o $(CXXLIBS)

.cc.o:
        g++ -c $(CXXFLAGS) $<

Of cource, This makefile can’t make. There is Pythia6 in “pythiaExample.C”.Please tell me how to make.

regard.

Hi,

Add -lEG -lEGPythia6 in the list of ROOT libraries:

As they are not in the list of default libraries.

Cheers, Bertrand.

Can make pythiaExample.C and run successfully!! :smiley:

Thank you !!!