Error dictionary generation

Hello,
I’m trying to generate a dictionary, but I got this error, I have root5.20 and it was installed in the path /usr/loca/, so I specified the path with

export PATH=$PATH:/usr/local/bin

but I got the same error.

What else Can I do???

Info in TUnixSystem::ACLiC: creating shared library /home/lina/tesis/./decayer_C.so
sh: /bin/rootcint: No existe el fichero o el directorio
Error in : Dictionary generation failed!
Info in : Invoking compiler to check macro’s validity
/home/lina/tesis/./decayer.C:7:22: error: ostream.h: No existe el fichero o el directorio
/home/lina/tesis/./decayer.C:23:19: error: Event.h: No existe el fichero o el directorio
/home/lina/tesis/./decayer.C:43: error: redefinition of ‘struct Pyjets_t’
/usr/local//include/root/TPythia6Calls.h:58: error: previous definition of ‘struct Pyjets_t’
/home/lina/tesis/./decayer.C: In function ‘int P2ATest(int, int)’:
/home/lina/tesis/./decayer.C:158: error: a function-definition is not allowed here before ‘{’ token
/home/lina/tesis/./decayer.C:334: error: ‘class TPythia6’ has no member named ‘Pycell’
/home/lina/tesis/./decayer.C:341: warning: unused variable ‘runNumber’
/home/lina/tesis/./decayer.C:342: warning: unused variable ‘eventNumber’
/home/lina/tesis/./decayer.C:72: warning: unused variable ‘startdecay’
/home/lina/tesis/./decayer.C:73: warning: unused variable ‘enddecay’
/home/lina/tesis/./decayer.C:78: warning: unused variable ‘file’

Thanks… :wink:

Try by setting ROOTSYS to /usr/loca:export ROOTSYS=/usr/loca

Cheers,
Philippe.

Hi,
Thanks, this works good. But now I got other error, I type this en root
root [0] .L nuevo.C

And It doen’t have problems, but I type this

root [0] .L nuevo.C+

and I got this message:

Info in TUnixSystem::ACLiC: creating shared library /usr/local/share/root/macros/./nuevo_C.so
In file included from /usr/local/share/root/macros/./nuevo.C:26,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/PseudoJet.hh:95: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:98: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:102: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:154: warning: type qualifiers ignored on function return type
In file included from /usr/local//include/root/fastjet/ClusterSequence.hh:59,
from /usr/local/share/root/macros/./nuevo.C:27,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/JetDefinition.hh:272: warning: unused parameter ‘p’
In file included from /usr/local//include/root/fastjet/ClusterSequenceActiveArea.hh:36,
from /usr/local/share/root/macros/./nuevo.C:28,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:67: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:71: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:84: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:92: warning: unused parameter ‘jet’
In file included from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local/share/root/macros/./nuevo.C: In function ‘int P2ATest(int, int)’:
/usr/local/share/root/macros/./nuevo.C:177: warning: unused variable ‘runNumber’
/usr/local/share/root/macros/./nuevo.C:178: warning: unused variable ‘eventNumber’
/usr/local/share/root/macros/./nuevo.C:76: warning: unused variable ‘startdecay’
/usr/local/share/root/macros/./nuevo.C:77: warning: unused variable ‘enddecay’
/usr/local/share/root/macros/./nuevo.C:82: warning: unused variable ‘file’
/usr/local/share/root/macros/./nuevo.C:86: warning: unused variable ‘treejet’
/usr/local/share/root/macros/./nuevo.C:189: warning: control reaches end of non-void function
dlopen error: /usr/local/share/root/macros/./nuevo_C.so: undefined symbol: _ZN8TPythia6D1Ev
Load Error: Failed to load Dynamic link library /usr/local/share/root/macros/./nuevo_C.so
In file included from /usr/local/share/root/macros/./nuevo.C:26,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/PseudoJet.hh:95: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:98: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:102: warning: type qualifiers ignored on function return type
/usr/local//include/root/fastjet/PseudoJet.hh:154: warning: type qualifiers ignored on function return type
In file included from /usr/local//include/root/fastjet/ClusterSequence.hh:59,
from /usr/local/share/root/macros/./nuevo.C:27,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/JetDefinition.hh:272: warning: unused parameter ‘p’
In file included from /usr/local//include/root/fastjet/ClusterSequenceActiveArea.hh:36,
from /usr/local/share/root/macros/./nuevo.C:28,
from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:67: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:71: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:84: warning: unused parameter ‘jet’
/usr/local//include/root/fastjet/ClusterSequenceAreaBase.hh:92: warning: unused parameter ‘jet’
In file included from /usr/local/share/root/macros/./fileA7GLjn.h:32,
from /usr/local/share/root/macros/./fileA7GLjn.cxx:16:
/usr/local/share/root/macros/./nuevo.C: In function ‘int P2ATest(int, int)’:
/usr/local/share/root/macros/./nuevo.C:177: warning: unused variable ‘runNumber’
/usr/local/share/root/macros/./nuevo.C:178: warning: unused variable ‘eventNumber’
/usr/local/share/root/macros/./nuevo.C:76: warning: unused variable ‘startdecay’
/usr/local/share/root/macros/./nuevo.C:77: warning: unused variable ‘enddecay’
/usr/local/share/root/macros/./nuevo.C:82: warning: unused variable ‘file’
/usr/local/share/root/macros/./nuevo.C:86: warning: unused variable ‘treejet’
/usr/local/share/root/macros/./nuevo.C:189: warning: control reaches end of non-void function
/usr/lib/gcc/i486-linux-gnu/4.3.1/…/…/…/…/lib/crt1.o: In function _start': (.text+0x18): undefined reference tomain’
/usr/local/share/root/macros/./fileA7GLjn.o: In function P2ATest(int, int)': fileA7GLjn.cxx:(.text+0x14cf): undefined reference toTPythia6::TPythia6()'
fileA7GLjn.cxx:(.text+0x1b48): undefined reference to TPythia6::Initialize(char const*, char const*, char const*, float)' fileA7GLjn.cxx:(.text+0x1c41): undefined reference toTPythia6::GenerateEvent()'
fileA7GLjn.cxx:(.text+0x1d9c): undefined reference to TPythia6::~TPythia6()' fileA7GLjn.cxx:(.text+0x1dc4): undefined reference toTPythia6::~TPythia6()'
collect2: ld returned 1 exit status
*** Interpreter error recovered ***

Any help???

Thanks

Hi,

Do gSystem->Load("libEGPythia6"); before loading your compiled script.

Cheers,
Philippe.

PS. You should also address the warning that the compiler is giving about your code in particular/usr/local/share/root/macros/./nuevo.C:189: warning: control reaches end of non-void function

Cheers,
Philippe.

Thats work, I already had this order inside the code, but I don’t know what happened.
Thank you for the help…

Thanks very much :laughing:
LINA