title: C++ File Requires Library Support
body: <p>I'm trying to compile a simple program from the terminal that utilizes the condition_variable class. Upon building, I get the following error:</p>
  
  <blockquote>
    <p>This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the <code>-std=c++11</code> or <code>-std=gnu++11</code> compiler options.</p>
  </blockquote>
  
  <p>In researching this error <a href="https://stackoverflow.com/questions/10363646/compiling-c11-with-g">here</a>, I added the necessary flag to my make file, but I'm still getting the same error. </p>
  
  <p>Here is my makefile:</p>
  
  
  
  <pre class="lang-make prettyprint-override"><code>CXX=        g++ $(CCFLAGS)
  MAIN=       main.o
  DATACLASS=  dataclass.o
  OBJS =      $(MAIN) $(DATACLASS)
  
  LIBS=       -pthread
  
  CCFLAGS=    -g -std=c++11
  
  all:        main
  
  main:       $(MAIN) $(DATACLASS)
      $(CXX) -o main $(MAIN) $(DATACLASS) $(LIBS)
  
  dataclass:  $(DATACLASS)
      $(CXX) -o dataclass $(DATACLASS) $(LIBS)
  
  clean:
      rm -f $(OBJS) $(OBJS:.o=.d)
  
  realclean:
      rm -f $(OBJS) $(OBJS:.o=.d) main
  
  
  %.d:    %.cc
  $(SHELL) -ec '$(CC) -M $(CPPFLAGS) $&lt; \
      | sed '\''s/\($*\)\.o[ :]*/\1.o $@ : /g'\'' &gt; $@; \
      [ -s $@ ] || rm -f $@'
  
  include $(OBJS:.o=.d)
  </code></pre>
  
  <p>I'm sure I'm missing something small and stupid as I'm new to makefiles, but any help would be greatly appreciated.</p>