Dear all,
I'm trying to mark a function as "deprecated" using the attributes. When using C++ compiler directly, everything goes fine and it works. But, building the code as a part of PandaRoot fails with the following message:
Generating MVADict.cxx, MVADict.h
Error: unrecognized language construct /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:122:
Error: Too many '}' /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:256:
Error: Missing closing brace for the block opened around line 85.
Error: Unexpected end of file (G__exec_statement()) /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:307:
Error: Missing one of ';,(' expected at or after line 307.
Error: Unexpected end of file (G__fgetname():2) /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:307:
Error: Missing one of '*&,;=():}' expected at or after line 307.
Error: Unexpected end of file (G__fgetvarname():2) /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:307:
Error: Missing one of ',;=():' expected at or after line 307.
Error: Unexpected end of file (G__fgetstream():2) /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:307:
Syntax Error: Maybe missing ';' /opt/fairroot/pandaroot/PndTools/MVA/PndMvaDataSet.h:307:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /opt/fairroot/buildPanda/PndTools/MVA/MVADict.cxx /opt/fairroot/buildPanda/PndTools/MVA/MVADict.h !!!
Error: /opt/fairroot/fairsoft/tools/root/bin/rootcint: error loading headers...
make[2]: *** [PndTools/MVA/MVADict.cxx] Error 1
make[1]: *** [PndTools/MVA/CMakeFiles/Mva.dir/all] Error 2
make: *** [all] Error 2
The function definition is as follows:
void WriteDataSet(std::string const& outFile) __attribute__ ((deprecated));
Anybody any idea what is going wrong and how it can be solved?
Kind wishes,
MB.