Macro /usr/local/root/tutorials/pythia/pythiaExample.C does not work in root version 6.22/01

ROOT Version: 6.22/01
Platform: Ubuntu 18.04.5 LTS
Compiler: gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0

I am novice with PYthia and tried /usr/local/root/tutorials/pythia/pythiaExample.C without
success. Companion macro /usr/local/root/tutorials/pythia/pythia8.C uses PYthia8 and works, but pythiaExample.C
is supposed to use PYthia6(perhaps,not everything set for this version). Is it possible somehow to revive pythiaExample.C, because
it is very informative?May be somebody has an example, working in PYthia8 and having

similar collection fpythia functionalities?

It does not seems dead …

I am sorry! Perhaps I did some mistake.

It looks that pythiaExample.C is working.

Now I am playing with it and may be you can answer one more

question:

In its text I encountered with the clause “#ifdef R__MACOSX”.

As I understand R__MACOSX is cling compiler macro variable. How can I

see its value?

Thanks again

Sorry to disturb you again!

What cling does when it encounters gSystem->Load(“libpythia6_dummy”);

Does it simply check presence of libraries as it is written in comment?

What it does if libraries are not loaded?

This true when you are running on MacOSX. You are on Ubuntu, so the code under this flag is not used in your case.

The best is to read the documentation.