Masaharu, This is just a simple example. Our code does not include <bits/types.h> directly. A quick grep of /usr/include shows that <bits/types.h> is directly #included in no fewer than 32 other header files in /usr/include. It is difficult to avoid it totally. It seems to me that this problem needs some attention. Bill Tanenbaum Masaharu Goto wrote: > > Hello Philippe and Bill, > > As x1.h looks as follows. > > #include <bits/types.h> > #include "TObject.h" > class x1 { > public: > x1() {} > virtual ~x1() {} > int a; > ClassDef(x1,1) > }; > > You can not include <bits/types.h> like this because > Cint does not support it. As far as I know this header > file is not defined in ANSI-C nor ANSI/ISO C++. Please > exclude this part with #ifndef __CINT__. > > Thank you > Masaharu Goto > > >Date: Wed, 29 May 2002 13:43:57 -0500 > >From: Philippe Canal <pcanal@fnal.gov> > >To: Masaharu Goto <MXJ02154@nifty.ne.jp> > >Subject: FW: rootcint problem with <bits/types.h> > > > > > > > >-----Original Message----- > >From: wmtan@fnal.gov [mailto:wmtan@fnal.gov] > >Sent: Wednesday, May 29, 2002 1:39 PM > >To: Philippe Canal > >Cc: Rene Brun > >Subject: rootcint problem with <bits/types.h> > > > > > >Philippe, > > > >Here is the info on the rootcint problem with <bits/types.h>. It > >happens when __GNUC__ is defined, so it is compiler dependent. > > > >command: rootcint -f x1Dict.cc -c -p1 x1.h x1LinkDef.h > >attachments to this e-mail: x1.h x1LinkDef.h > >compiler: gcc2.95-2: > >OS: Linux red hat 6.1: > >Error messages from rootcint below: > > > >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 __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:124 > >Error: class,struct,union or type __u_quad_t not defined > >FILE:/usr/include/bits/types.h LINE:128 > >Error: class,struct,union or type __u_quad_t not defined > >FILE:/usr/include/bits/types.h LINE:132 > >Warning: Error occured during reading source files > >Warning: Error occured during dictionary source generation > >!!!Removing x1Dict.cc x1Dict.h !!! > >rootcint: error loading headers... > > > >-- > >Bill Tanenbaum > >wmtan@fnal.gov > >(630)840-5228 > > -- Bill Tanenbaum wmtan@fnal.gov (630)840-5228
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:54 MET