Ubuntu 16.04 Error Building from Source

I’m trying to install the Stable Dynare from Source on Ubuntu 16.04 following this instruction very closely. Nevertheless, I get some errors. Any ideas how I can fix it? Help would be greatly appreciated!

test@laptop:~$ sudo make
Making all in preprocessor
make[1]: Entering directory '/dynare/preprocessor’
make all-recursive
make[2]: Entering directory '/dynare/preprocessor’
Making all in macro
make[3]: Entering directory '/dynare/preprocessor/macro’
make all-am
make[4]: Entering directory '/dynare/preprocessor/macro’
MacroDriver.cc: In member function ‘void MacroDriver::parse(const string&, const string&, const string&, std::ostream&, bool, bool, std::map<std::__cxx11::basic_string, std::__cxx11::basic_string >, std::vector<std::__cxx11::basic_string >)’:
MacroDriver.cc:63:24: error: ‘class std::__cxx11::basic_string’ has no member named ‘front’
if (it->second.front() == ‘[’ && it->second.back() == ‘]’)
MacroDriver.cc:63:53: error: ‘class std::__cxx11::basic_string’ has no member named ‘back’
if (it->second.front() == ‘[’ && it->second.back() == ‘]’)
Makefile:457: recipe for target ‘libmacro_a-MacroDriver.o’ failed
make[4]: *** [libmacro_a-MacroDriver.o] Error 1
make[4]: Leaving directory '/dynare/preprocessor/macro’
Makefile:361: recipe for target ‘all’ failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/dynare/preprocessor/macro’
Makefile:948: recipe for target ‘all-recursive’ failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/dynare/preprocessor’
Makefile:459: recipe for target ‘all’ failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/dynare/preprocessor’
Makefile:425: recipe for target ‘all-recursive’ failed
make: *** [all-recursive] Error 1

You are building the unstable version and seem to have an older version of gcc. That issue should be fixed today. See https://github.com/DynareTeam/dynare/commit/4d89452e1bb6cc55f0800d6cbf976f2519f822c1

Thank you very much for your quick help. As an unexperienced Git user it wasn’t really clear to me which release I’m going to install by just reading the installation instruction. Maybe this point could be stated a bit more expressively in the otherwise really nicely written README file.