zeeshan@zeeshan:~/pythia/pythia8312/examples$ make main4838
g++ main4838.cc -o main4838 -I../include -O2 -std=c++11 -pedantic -W -Wall -Wshadow -fPIC -pthread -L../lib -Wl,-rpath,../lib -lpythia8 -ldl
main4838.cc:8:10: fatal error: TTree.h: No such file or directory
8 | #include "TTree.h"
| ^~~~~~~~~
compilation terminated.
make: *** [Makefile:81: main4838] Error 1
Hi Muhammad,
Welcome to the ROOT Community!
That looks like a misconfiguration of your system. Can you run ROOT? Can you compile a simple executable using ROOT classes with the command g++ myprog.cpp myprog `root-config --libs --cflags`
?
Cheers,
Danilo