title: Unordered Maps on g++
body: <p>I am learning about STL currently and I am trying to implement an unordered map for a dictionary file.</p>
  
  <p>This is the first time I have done this so I did a lot of research prior to trying this.</p>
  
  <p>I want to do an unordered map for my assignment because we can receive extra points if we can make our project faster than what our professor's solution currently is.</p>
  
  <p>The problem I am running into is that I keep getting this error:</p>
  
  <p><strong>SpellCheck.h:16: error: ISO C++ forbids declaration of âunordered_mapâ with no type</strong></p>
  
  <p>I am sure my syntax is correct, but I could be missing something.</p>
  
  <p>I am not sure if this helps, but I am compiling on a school server using g++.</p>
  
  <p>My g++ version is g++ (GCC) 4.4.7 . </p>
  
  <pre><code>#ifndef SPELLCHECK_H
  #define SPELLCHECK_H
  #include &lt;vector&gt;
  #include &lt;tr1/unordered_map&gt;
  #include &lt;string&gt;
  
  
  using std::vector;
  using std::string;
  
  
  class SpellCheck
  {
  private:
  typedef vector&lt;string&gt; Vector;
  typedef unordered_map&lt;string, int&gt; Dictionary;  
  };
  #endif
  </code></pre>