title: c++ including libs and adding directories for directX11
body: <p>So I'm playing around with a DirectX tutorial trying to learn it but i keep getting these errors:</p>
  
  <pre><code>   1&gt;main.obj : error LNK2019: unresolved external symbol _D3D11CreateDeviceAndSwapChain@48
     referenced in function "void __cdecl InitD3D(struct HWND__ *)" (?InitD3D@@YAXPAUHWND__@@@Z)
     1&gt;main.obj : error LNK2019: unresolved external symbol _D3DX11CompileFromFileW@44 referenced in
     function "void __cdecl InitPipeline(void)" (?InitPipeline@@YAXXZ)
  </code></pre>
  
  <p>Now I am pretty sure this has something to do with including the rigth directories and libs ect.
  I have added the includes and set the linker options</p>
  
  <pre><code> #include &lt;d3d11.h&gt;
   #include &lt;d3dx11.h&gt;
   #include &lt;d3dx10.h&gt;
   #pragma comment (lib, "d3d11.lib")
   #pragma comment (lib, "d3dx11.lib")
   #pragma comment (lib, "d3dx10.lib")
  </code></pre>
  
  <p>I have also set the the directories at configuration properties-> VSC++ directories -> Include directories and Lib. directories</p>
  
  <p>Is there something else I'm missing?</p>
  
  <p>Edit: Im using Visual Studio c++ 2010 express</p>