RE: [ROOT] clhep

From: Philippe Canal (pcanal@fnal.gov)
Date: Mon Feb 24 2003 - 15:11:09 MET


Hi Yvonne,

When including CLHEP header file you need to run rootcint with the -p option
(using an external preprocessor).  This is because CLHEP using uses C
preprocessor macro that CINT can not understand.

Hence you need to do something like:

	rootcint -f mydict.cc -c -p myheader.h mylinkdef.h

Cheers,
Philippe

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Yvonne Becherini
Sent: Monday, February 24, 2003 5:06 AM
To: roottalk
Subject: [ROOT] clhep



Hallo,

I'm trying to add a class which needs CLHEP.h.
But I get these messages when trying to make the dictionary.

Could anybody help me?

Yvonne

Limitation: can not handle macro HepSTL std Use +P or -p option
FILE:/usr/local/CLHEP/config/CLHEP.h LINE:39
Limitation: can not handle macro HepStd std Use +P or -p option
FILE:/usr/local/CLHEP/config/CLHEP.h LINE:47
Limitation: can not handle macro HepIOSBadBit std::ios::badbit Use +P or
-p option FILE:/usr/local/CLHEP/config/CLHEP.h LINE:107
Limitation: can not handle macro pascal hep_pascal Use +P or -p option
FILE:inc/SystemOfUnits.h LINE:183
Error: Symbol pascal is not defined in current scope
FILE:inc/SystemOfUnits.h LINE:184
Error: Symbol pascal is not defined in current scope
FILE:inc/SystemOfUnits.h LINE:185
Error: Unexpected EOF G__fignorestream():3 FILE:/usr/include/strings.h
LINE:66
Advice: You may need to use +P or -p option
Error: Symbol __extension__typedefunsignedlonglongint__u_quad_t is not
defined in current scope  FILE:/usr/include/bits/types.h LINE:37
Error: Symbol __extension__typedeflonglongint__quad_t is not defined in
current scope  FILE:/usr/include/bits/types.h LINE:38
Error: Symbol __extension__typedefsignedlonglongint__int64_t is not
defined in current scope  FILE:/usr/include/bits/types.h LINE:56
Error: Symbol __extension__typedefunsignedlonglongint__uint64_t is not
defined in current scope  FILE:/usr/include/bits/types.h LINE:57
Error: class,struct,union or type __quad_t not defined
FILE:/usr/include/bits/types.h LINE:59
Error: class,struct,union or type __u_quad_t not defined
FILE:/usr/include/bits/types.h LINE:61
Error: class,struct,union or type __quad_t not defined
FILE:/usr/include/bits/types.h LINE:68
Error: class,struct,union or type __u_quad_t not defined
FILE:/usr/include/bits/types.h LINE:72
Error: class,struct,union or type __quad_t not defined
FILE:/usr/include/bits/types.h LINE:114
Error: class,struct,union or type __u_quad_t not defined
FILE:/usr/include/bits/types.h LINE:118
Error: class,struct,union or type __u_quad_t not defined
FILE:/usr/include/bits/types.h LINE:122
Error: class,struct,union or type __u_quad_t not defined
FILE:/usr/include/bits/types.h LINE:125
Error: Unexpected EOF G__fignorestream():3 FILE:/usr/include/sys/select.h
LINE:121
Advice: You may need to use +P or -p option
Syntax Error: \
 Maybe missing ';' FILE:/usr/include/sys/time.h LINE:45
Limitation: can not handle macro ITIMER_REAL ITIMER_REAL Use +P or -p
option FILE:/usr/include/sys/time.h LINE:96
Limitation: can not handle macro ITIMER_VIRTUAL ITIMER_VIRTUAL Use +P or
-p option FILE:/usr/include/sys/time.h LINE:99
Syntax Error: \
 Maybe missing ';' FILE:/usr/include/sys/time.h LINE:159
Error: Unexpected EOF G__fgetstream_template():2
FILE:/usr/include/sys/time.h LINE:174
Advice: You may need to use +P or -p option
Error: Unexpected EOF G__fignorestream():3 FILE:/usr/include/sys/time.h
LINE:174
Advice: You may need to use +P or -p option
Warning: Error occured during reading source files
Warning: Error occured during dictionary source generation



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET