title: fatal error: 'type_traits' file not found
body: <p>So I've just started off with Google's OpenFST toolkit and I'm trying out their examples. Using C++ on Eclipse Mars and upon build I get the following error:</p>
  
  <p><code>fatal error: 'type_traits' file not found</code></p>
  
  <p>Here's my sample program - when I'm trying from <a href="http://www.openfst.org/twiki/bin/view/FST/FstQuickTour#Creating_FSTs_Using_Constructors" rel="nofollow noreferrer">here</a>. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;fst/fst-decl.h&gt;
  #include &lt;fst/fstlib.h&gt;
  
  using namespace std;
  
  int main() {
  
      fst::StdVectorFst fst; 
  
      return 0;
  }
  </code></pre>
  
  <p>And when I build it, I get the following errors:</p>
  
  <pre><code>/usr/local/include/fst/util.h:15:10: fatal error: 'type_traits' file not found
  #include &lt;type_traits&gt;
           ^
  1 error generated.
  make: *** [src/sampleFST.o] Error 1
  </code></pre>
  
  <p>Is there some linker error? Why is it unable to find that header file? It does exist in the <code>/usr/include/c++/4.2.1/tr1/</code> directory on my computer. What am I doing wrong?</p>