title: Link error using std::vector
body: <p><br>
  I'm having a problem with a vector declaration.<br>
  Here's the code:<br></p>
  
  <p>.h<br></p>
  
  <pre><code>#ifndef ANIMATEDSPRITE_H_
  #define ANIMATEDSPRITE_H_
  
  #include "Sprite.h"
  #include &lt;vector&gt;
  
  //using namespace std;
  
  class AnimatedSprite //abstract class to point sprites
  {
  public:
      AnimatedSprite();
      ~AnimatedSprite();
  
      //gets and sets
      Sprite GetMySprite(int _index);
      void SetSpriteToList(Sprite _sprite);
      int GetState() const;
      void SetState(int _state);
  
      //other
  
  
  
  private:
      std::vector&lt;Sprite&gt; spriteList;
  
      int state; //estado que esse sprite representa (parado esquerda, andando direita, etc)
  };
  
  #endif
  </code></pre>
  
  <p>.cpp<br></p>
  
  <pre><code>#include "AnimatedSprite.h"
  
  AnimatedSprite::AnimatedSprite()
  {
      spriteList.clear();
      state = NULL;
  }
  
  AnimatedSprite::~AnimatedSprite()
  {
  
  }
  
  Sprite AnimatedSprite::GetMySprite(int _index)
  {
      return spriteList[_index];
  }
  
  void AnimatedSprite::SetSpriteToList( Sprite _sprite )
  {
      //Sprite* temp = new Sprite(1,2);
      spriteList.push_back(_sprite);
  }
  
  int AnimatedSprite::GetState() const
  {
      return state;
  }
  
  void AnimatedSprite::SetState( int _state )
  {
      state = _state;
  }
  </code></pre>
  
  <p>But I'm getting 2 errors:<br></p>
  
  <blockquote>
    <p>Error  1   error LNK2019: unresolved external symbol <strong>imp</strong>_CrtDbgReportW referenced in function "public: class Sprite &amp; __thiscall std::vector >::operator[](unsigned int)" (??A?$vector@VSprite@@V?$allocator@VSprite@@@std@@@std@@QAEAAVSprite@@I@Z)   AnimatedSprite.obj</p>
    
    <p>Error  2   fatal error LNK1120: 1 unresolved externals C:\DevProjects\SDLSkeleton\Debug\SDLSkeleton.exe</p>
  </blockquote>
  
  <p>I've found a solution removing the _DEBUG from the Preprocessor Definitions, but it seems kinda wrong to do that.<br>
  Is it the right solution? What's the consequence of removing it?<br>
  In the book and documentations I've checked it should be just a common variable declaration, but this errors showed up.<br></p>
  
  <p>Thanks.</p>