title: cant open file .exe 1104
body: <p>I'm using sfml 2.0. I know I can ask on there forum but I don't think it has anything to do with linking a library wrong because I compiled an example project fine and it's pretty much the exact same thin I'm just trying to incorporate an external class. I get this when I try to compile</p>
  
  <blockquote>
    <p>1> LINK : fatal error LNK1104: cannot open file 'C:\Users\brr\documents\visual studio 2012\Projects\sfmlgame\Release\sfmlgame.exe'</p>
  </blockquote>
  
  <p>My code is as follows:</p>
  
  <p>main.cpp:</p>
  
  <pre><code>#include "functions.h"
  int main()
  {
      functions func;
      std::cout &lt;&lt; "Testing 123, testing 123!";
      sf::CircleShape shape(100.f);
      shape.setFillColor(sf::Color::Green);
      bool running = true;
      while (running)
      {
          func.window.clear();
          func.window.draw(shape);
          func.window.display();
      }
      return 0;
  }
  </code></pre>
  
  <p>functions.h:</p>
  
  <pre><code>#pragma once
  #include &lt;SFML/Graphics.hpp&gt;
  #include &lt;SFML/System.hpp&gt;
  #include&lt;SFML\Network.hpp&gt;
  #include &lt;SFML/Window.hpp&gt;
  #include &lt;iostream&gt;
  
  class functions
  {
  public:
      functions(void);
      ~functions(void);
      void Events();
      void Window();
      sf::RenderWindow window;
      sf::Event event;
  };
  </code></pre>
  
  <p>functions.cpp:</p>
  
  <pre><code>#include "functions.h"
  functions::functions(void)
  {
  }
  
  functions::~functions(void)
  {
  }
  
  void functions::Window(){
      window.setSize(sf::Vector2u(800,600));
      window.setTitle("Test");
  }
  
  void functions::Events(){
      while (window.pollEvent(event))
      {
          if (event.type == sf::Event::Closed)
              window.close();
      }
  }
  </code></pre>