Error: class,struct,union or type ... not defined

Hi,

for my analysis, ROOTCINT exits with a series of errors I don’t understand:
rootcint -f VBFStudyDict.cxx -c VBFStudyGUI.h VBFStudy.h NTupleChain.h EventCutset.h Plotset.h Utilities.h LinkDefFile.h

Error: class,struct,union or type {int__val[2];} not defined /usr/include/bits/typesizes.h:60:
Error: class,struct,union or type __DEV_T_TYPE not defined /usr/include/bits/types.h:134:
Error: class,struct,union or type __INO_T_TYPE not defined /usr/include/bits/types.h:137:
Error: class,struct,union or type __INO64_T_TYPE not defined /usr/include/bits/types.h:138:
Error: class,struct,union or type __NLINK_T_TYPE not defined /usr/include/bits/types.h:140:
Error: class,struct,union or type __OFF_T_TYPE not defined /usr/include/bits/types.h:141:
Error: class,struct,union or type __OFF64_T_TYPE not defined /usr/include/bits/types.h:142:
Error: class,struct,union or type __CLOCK_T_TYPE not defined /usr/include/bits/types.h:145:
Error: class,struct,union or type __RLIM_T_TYPE not defined /usr/include/bits/types.h:146:
Error: class,struct,union or type __RLIM64_T_TYPE not defined /usr/include/bits/types.h:147:
Error: class,struct,union or type __TIME_T_TYPE not defined /usr/include/bits/types.h:149:
Error: class,struct,union or type __SUSECONDS_T_TYPE not defined /usr/include/bits/types.h:151:
Error: class,struct,union or type __SWBLK_T_TYPE not defined /usr/include/bits/types.h:154:
Error: class,struct,union or type __TIMER_T_TYPE not defined /usr/include/bits/types.h:161:
Error: class,struct,union or type __BLKSIZE_T_TYPE not defined /usr/include/bits/types.h:164:
Error: class,struct,union or type __BLKCNT_T_TYPE not defined /usr/include/bits/types.h:169:
Error: class,struct,union or type __BLKCNT64_T_TYPE not defined /usr/include/bits/types.h:170:
Error: class,struct,union or type __FSBLKCNT_T_TYPE not defined /usr/include/bits/types.h:173:
Error: class,struct,union or type __FSBLKCNT64_T_TYPE not defined /usr/include/bits/types.h:174:
Error: class,struct,union or type __FSFILCNT_T_TYPE not defined /usr/include/bits/types.h:177:
Error: class,struct,union or type __FSFILCNT64_T_TYPE not defined /usr/include/bits/types.h:178:
Error: class,struct,union or type __SSIZE_T_TYPE not defined /usr/include/bits/types.h:180:
Error: class,struct,union or type __SWORD_TYPE not defined /usr/include/bits/types.h:189:
Error: Missing whitespace at or after line 129.
Error: Unexpected end of file (G__fgetspace():2) /usr/include/sys/select.h:131:
Report: Unrecognized string ‘__END_DECLS’ ignored /usr/include/sys/select.h:132:
Error: Missing one of ‘,;{(’ expected at or after line 179.
Error: Unexpected end of file (G__fgetstream_template():2) /usr/include/sys/time.h:194:
Error: Missing one of ‘{’ expected at or after line 194.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/sys/time.h:194:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing VBFStudyDict.cxx VBFStudyDict.h !!!
Error: rootcint: error loading headers…

What else do I need to supply to make spotting the error possible?

Thanks
Holger

Try rootcint -f VBFStudyDict.cxx -c -p VBFStudyGUI.h VBFStudy.h NTupleChain.h EventCutset.h Plotset.h Utilities.h LinkDefFile.h (extra -p)

Cheers,
Philippe.

Hi,

thanks! What does -p do?

Have a good day,
Holger

Hi,

It tells CINT to use the compiler’s C macro preprocessor instead of CINT’s internal C macro preprocessor.

Cheers,
Philippe