title: Cloud 9 compiling c++98, need c++11
body: <p>I am attempting to compile a program that uses ranged based for loops, and a couple other features available only in c++11 and above. When I attempt to compile the program using a makefile in the terminal, I get this error:</p>
  
  <pre><code>error: range-based ‘for’ loops are not allowed in C++98 mode
  </code></pre>
  
  <p>and some warnings:</p>
  
  <pre><code>warning: extended initializer lists only available with -std=c++11 or -std=gnu++11 [enabled by default]
  </code></pre>
  
  <p>What's annoying is that this has happened before, but it just resolved itself. However, this time it has not resolved itself. </p>
  
  <p>Here's my makefile:</p>
  
  <pre><code>main: main.o
      g++5 -std=c++11 -Wall -Werror -g *.cpp -o lab4
  </code></pre>
  
  <p>Here are some examples of things I have tried to change in the makefile, but did not work.</p>
  
  <pre><code>g++-5 -std=c++11 -Wall -Werror -g *.cpp -o lab4
  g++5 -std=gnu++11 -Wall -Werror -g *.cpp -o lab4
  g++5 -std=c++0x -Wall -Werror -g *.cpp -o lab4
  g++ -std=c++11 -Wall -Werror -g *.cpp -o lab4
  g++ -std=gnu++11 -Wall -Werror -g *.cpp -o lab4
  </code></pre>
  
  <p>All of the previous examples result in similar warnings and errors. What can I do to fix the problem?</p>