Hi Liu,
The bool type is not yet recognized by several compilers.
in Root, we have defined the Bool_t type that behaves like bool.
You can use Bool_t or int.
Anyhow, an undefined type should not crash rootcint. We will protect
this case.
Rene Brun
Liu Haitao wrote:
>
> Hello,
>
> I got Segmentation fault when I use roocint to generate dictionary file.
>
> the command is
>
> rootcint -f DetectorParameterDict.cxx -c DetectorParameter.h
>
> if I use rootcint DetectorParameter.h it is OK
>
> rootversion: 2.25/02 2.25/00
>
> system: Linux 2.2.13-SMP gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>
> DetectorParameter.h:
>
> #ifndef DETECTORPARAMETER_HH
> #define DETECTORPARAMETER_HH
> #include "TObject.h"
> #include "TString.h"
>
> class DetectorParameter :public TObject{
> public:
> DetectorParameter(){};
> DetectorParameter(bool sf, bool sa, int nl, char *s):
> field(sf),air(sa),nlayer(nl),AtomosAlgorism(s){};
>
> public:
> const bool field;
> const bool air;
> const int nlayer;
> const TString AtomosAlgorism;
> ClassDef(DetectorParameter,1)
> };
>
> #endif
>
> With regards Haitao
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:32 MET