title: link to SFML 2 throws undefined reference to sf::Window constructor
body: <p>I just wanted to move my program source on my new computer and installed Codeblocks 12.11 and compiled SFML 2 by myself following the latest instructions by SFMLCoder. Everything worked fine. When I try to compile this:</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  #include &lt;SFML/Window.hpp&gt;
  
  int main()
  {
      cout &lt;&lt; "Hello world!" &lt;&lt; endl;
  
      sf::Window w( sf::VideoMode( 800, 600 ), "test" );
  
      return 0;
  }
  </code></pre>
  
  <p>I tried the static(with defining SFML_STATIC in C::B in the Buildoptions), the dynamic and both of the debug libs. But always after it links the files it says:
  <code>main.cpp|11|undefined reference to sf::Window::Window(sf::VideoMode, std::string const&amp;, unsigned int, sf::ContextSettings const&amp;)</code>
  or when using dynamic libraries
  <code>main.cpp|11|undefined reference to _imp___ZN2sf6WindowC1ENS_9VideoModeERKSsjRKNS_15ContextSettingsE</code>
  which is obviously the equivalent to the static link error.</p>
  
  <p>Edit:
  I found a thread in the official <a href="http://en.sfml-dev.org/forums/index.php?topic=10619.0" rel="nofollow">SFML-forum</a> with the exactly same problem: I'll post the solution if I get it right.</p>