title: Fatal error LNK1104: cannot open file 'sfml-graphics-s-d.lib'
body: <p>I am getting the error shown below when I try to compile my project in Visual C++ (Visual Studio 2013).</p>
  
  <pre><code>1&gt;------ Build started: Project: SFMLTest3D, Configuration: Debug Win32 ------
  1&gt;LINK : fatal error LNK1104: cannot open file 'sfml-graphics-s-d.lib'
  ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  </code></pre>
  
  <p>I am very much new Visual Studio, so I used the tutorials <a href="http://www.cplusplus.com/forum/beginner/95295/" rel="nofollow noreferrer">here</a> and <a href="https://github.com/SFML/SFML/wiki/Tutorial:-Build-your-SFML-project-with-CMake" rel="nofollow noreferrer">here</a> to set up the dependencies and everything.</p>
  
  <p>At the top of my file, I have the following headers included:</p>
  
  <pre><code>#include &lt;sfml.h&gt;
  </code></pre>
  
  <p>The file <code>sfml.h</code> contains the following:</p>
  
  <pre><code>#pragma once
  #ifndef SFMLFULL_INCLUDED
  #define SFMLFULL_INCLUDED
  
  #define SFML_STATIC
  
  #include &lt;SFML/Audio.hpp&gt;
  #include &lt;SFML/Graphics.hpp&gt;
  #include &lt;SFML/OpenGL.hpp&gt;
  #include &lt;SFML/Network.hpp&gt;
  #include &lt;SFML/System.hpp&gt;
  #include &lt;SFML/Window.hpp&gt;
  
  #if defined(_DEBUG) || defined(DEBUG)
      #pragma comment(lib,"sfml-graphics-s-d.lib")
      #pragma comment(lib,"sfml-audio-s-d.lib")
      #pragma comment(lib,"sfml-network-s-d.lib")
      #pragma comment(lib,"sfml-window-s-d.lib")
      #pragma comment(lib,"sfml-system-s-d.lib")
      #pragma comment(lib,"sfml-main-d.lib")
  #else
      #pragma comment(lib,"sfml-graphics-s.lib")
      #pragma comment(lib,"sfml-audio-s.lib")
      #pragma comment(lib,"sfml-network-s.lib")
      #pragma comment(lib,"sfml-window-s.lib")
      #pragma comment(lib,"sfml-system-s.lib")
      #pragma comment(lib,"sfml-main.lib")
  #endif
  
  #endif // SFMLFULL_INCLUDED
  </code></pre>
  
  <p>That file is located at <code>..\SFML-2.3\include\sfml.h</code>.</p>
  
  <p>The screenshot below shows the location of the <code>sfml-graphics-s-d.lib</code> file:</p>
  
  <p><img src="https://i.stack.imgur.com/5cViH.png" alt="Screenshot"></p>
  
  <p>Can someone please explain what I'm missing here?  If there is any further information you need, please just let me know and I'll do my best to provide it.</p>
  
  <p><strong>Edit:</strong> Based on the information <a href="https://stackoverflow.com/questions/3906404/link-fatal-error-lnk1104-cannot-open-file-d-myproj-exe">here</a> I have tried several things including completely restarting my computer, but the project still won't compile.</p>