title: C++ weird unresolved external error using Spritefont?
body: <p>Hey so I want to draw text using dx11, so I got the suggestion to use the spriteFont library for that. I followed the Tutorial on <a href="https://github.com/microsoft/DirectXTK/wiki/SpriteBatch" rel="nofollow noreferrer">GitHub</a> but I get an unresolved external error now which shouldn't happen?:</p>
  <pre><code>Reference to unresolved external symbol &quot;&quot;public: __cdecl DirectX::SpriteBatch::SpriteBatch(struct ID3D11DeviceContext *)&quot; (?? 0SpriteBatch@DirectX@@QEAA@PEAUID3D11DeviceContext@@Z)&quot; in function &quot;&quot;class std::unique_ptr&lt;class DirectX::SpriteBatch,struct std::default_delete&lt;class DirectX: :SpriteBatch&gt; &gt; __cdecl std::make_unique&lt;class DirectX::SpriteBatch,struct ID3D11DeviceContext * &amp;,0&gt;(struct ID3D11DeviceContext * &amp;)&quot; (? ?$make_unique@VSpriteBatch@DirectX@@AEAPEAUID3D11DeviceContext@@$0A@@std@@YA?AV?$unique_ptr@VSpriteBatch@DirectX@@U?$default_delete@VSpriteBatch@DirectX@@@std@@0@AEAPEAUID3D11DeviceContext@@Z)&quot;.
  </code></pre>
  <p>Code looks like this:</p>
  <pre><code>void rD3D11::test()
  {
      std::unique_ptr&lt;DirectX::SpriteBatch&gt; spriteBatch;
      spriteBatch = std::make_unique&lt;DirectX::SpriteBatch&gt;(pContext);
  }
  </code></pre>
  <p>If I uncomment the &quot;spriteBatch = ..&quot; line the error disappears.</p>
  <p>The code is very simple and I don't know what is wrong with it as this shouldn't trigger an unresolved external error?
  What code do I have to add / change in order to solve this error?</p>