Error on TBufferFile::ReadVersion

Your makefile sets “-std=c++11”.
Have you built ROOT using “./configure --enable-cxx11” (or “cmake -Dcxx11=ON”)?

Also, I think you’d better have: CXXFLAGS+=$(ROOTCFLAGS)