Hi,
i am using Root version 5.26.00c_python2.5. When i try to include iomanip.h in a macro this leads to the following error:
Warning: Automatic variable G__IOMANIP_H is allocated /afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00c_python2.5/slc4_amd64_gcc34/root/cint/cint/include/iomanip.h:19:
Error: Undeclared variable G__IOMANIP_H /afs/cern.ch/sw/lcg/app/releases/ROOT/5.26.00c_python2.5/slc4_amd64_gcc34/root/cint/cint/include/iomanip.h:19:
What am i doing wrong here?
cheers, Klemens
for completeness the macro i am calling with .L myMacro.C
#include <iostream>
#include <iomanip>
TString format(Float_t value) {
std::stringstream outputLine;
std::stringstream svalue;
svalue << std::setprecision(3) << value;
outputLine << svalue.str();
return outputLine.str();
}