Closed benfulcher closed 5 years ago
Hi Ben,
You should try using the Makefile
in the repository as it has all the appropriate flags to compile the code on Linux distributions.
The following line in the error message:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
means that the compiler does not know it has to use features of the C++11 standard.
From gcc 5.1.0 onward, the default standard changed from C90 to C11, thus a compiler like gcc 7.2.0 (on Artemis) would not produce errors. However for gcc 4.8.5, you need to explicitly pass the flag -std=c++11
as we do in line 33 in the Makefile.
Btw, I successfully compiled the code with gcc 4.8.5 on headnode
using nftsim's makefile.
@pausz You're completely right! When I changed the flags to those in the makefile it worked no problem. I was assuming pull upstream
was giving me the latest, but it's keeping the changes in my fork, which are messing things up on this particular cluster. Sorry to be annoying :( Thanks so much for your detailed help 😅