When compiling a class with a member function in the header which
includes a default value with a shift operator such as:
float calc(unsigned long parameter=0x1f<<1) ;
the following error is generated :
Error: Unexpected EOF G__fgetstream_template():2 include/event.h:2:
Error: Unexpected EOF G__fgetstream_template():2 include/event.h:2:
Error: Unexpected EOF G__fignorestream():3 include/event.h:2:
Error: Unexpected EOF G__exec_statement() include/event.h:3:
Error: Unexpected EOF G__fgetname():2 include/event.h:3:
Error: Unexpected EOF G__fgetvarname():2 include/event.h:3:
Error: Unexpected EOF G__fgetstream():2 include/event.h:3:
Syntax Error: Maybe missing ‘;’ include/event.h:3:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing linkdef/event_DICT.cc linkdef/event_DICT.h !!!
Error: rootcint: error loading headers…
make: *** [linkdef/event_DICT.cc] エラー 1
Removal of the shift operator removes allows the dictionary to
complete compilation:
float calc(unsigned long parameter=0x1f);
Not a major problem but I though I would post this in case anyone
ran into the same issue,
Branden Allen