title: Symbol 'vector' could not be resolved
body: <p>I have the following C++ code in an Eclipse project imported from an existing Makfile-based project: </p>
  
  <pre><code>#ifndef LAZY_EVAL_FUNCTOR_
  #define LAZY_EVAL_FUNCTOR_
  
  #include &lt;vector&gt;
  #include &lt;stdlib.h&gt;
  
  namespace libtensor {
  
  //Forward declaration
  template&lt;size_t N,typename T&gt; 
  class labeled_sparse_btensor;
  
  typedef std::vector&lt;size_t&gt; block_list; 
  
  //Used to erase other size parameters from contract_eval_functor 
  template&lt;size_t N,typename T=double&gt;
  class lazy_eval_functor {
  public:
      virtual void operator()(labeled_sparse_btensor&lt;N,T&gt;&amp; dest) const = 0;
  
      //For direct tensors
      virtual void operator()(labeled_sparse_btensor&lt;N,T&gt;&amp; dest,std::vector&lt; block_list &gt;&amp; output_block_lists) const = 0;
  
      virtual ~lazy_eval_functor() {};
  };
  
  } // namespace libtensor
  
  #endif /* LAZY_EVAL_FUNCTOR_ */
  </code></pre>
  
  <p>Despite the fact that the  include is resolved correctly, I still get errors on both lines in which std::vector appears: </p>
  
  <pre><code>Symbol 'vector' could not be resolved. 
  </code></pre>
  
  <p>I have already added the include path in which std::vector is defined: </p>
  
  <p><img src="https://i.stack.imgur.com/ruvTg.png" alt="enter image description here"></p>
  
  <p>My OS is Mac OS X 10.6 and my gcc version is gcc 4.2.1 </p>
  
  <p>Please advise a way to resolve this issue. </p>
  
  <p>EDIT: It seems to do this for other std members to, such as std::map. There is no 'unresolved inclusion' error for the header, but it doesn't find the corresponding class. </p>