GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » C++ function attributes
C++ function attributes [message #11508] Mon, 21 February 2011 17:18
M.Babai is currently offline  M.Babai
Messages: 46
Registered: January 2008
Location: Netherlands
continuous participant
From: *KVI.nl
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.
 
Read Message
Previous Topic: stable branch update
Next Topic: New external packages: TH2 COLZ logZ bug
Goto Forum:
  


Current Time: Thu Nov 07 23:16:48 CET 2024

Total time taken to generate the page: 0.00894 seconds