TH1.h in Pythia8

Dear experts;

I installed pythia8205 and compiled. When I do “make main91” it is compiling. However, if I create another script like mymain5.cc and tried to make histograms in this, it gives following error. Does anyone know how I will get rid of this?

make mymain5
mymain5.cc:18:10: fatal error: ‘TH1.h’ file not found
#include “TH1.h”
^
1 error generated.
make: *** [mymain5] Error 1

Hi,

Most likely your makefile is not passing:`root-config --cflags`to the compilation line of mymain5.cc

Cheers,
Philippe.

Hi Philippe,
I tried root-config --cflags. It gives me following codes. But, it did not solve the issue yet.
-pthread -stdlib=libc++ -m64 -I/Users/kamurandilsiz/Root/root/include

But, it did not solve the issue yet.

Humm strange … What is the command line that leads to the error (i.e. the compilation line)?

Cheers,
Philippe.

Here is the error that I got:
mymain5.cc:18:10: fatal error: ‘TH1.h’ file not found
#include “TH1.h”
^
1 error generated.
make: *** [mymain5] Error 1

But, If I use main91.cc, then it works.

What is the command line that leads to the error (i.e. the compilation line)?