title: How to Compile SFML C++ Source Code From Linux to Windows on a Linux Distro?
body: <p>I've been searching online for solutions for 5 hours and still can't compile on my Linux Distro (openSuSE) to Windows using the <a href="http://www.sfml-dev.org/" rel="nofollow">SFML</a> API.</p>
  
  <p>I can compile non-SFML applications without any problems using the MinGW compiler on openSuSE by invoking this command:</p>
  
  <p><code>i686-w64-mingw32-g++ Main.cpp</code></p>
  
  <p>However, whenever I compile a SFML program like this one: <a href="http://www.sfml-dev.org/tutorials/1.6/start-cb.php" rel="nofollow">http://www.sfml-dev.org/tutorials/1.6/start-cb.php</a></p>
  
  <p>I get this error: <code>fatal error: SFML\System.hpp: No such file or directory</code></p>
  
  <p>I tried:
  <code>i686-w64-mingw32-g++ Main.cpp -L /home/user/Downloads/SFML1.6/lib -lsfml-system</code></p>
  
  <p>But I still get the same error.</p>
  
  <p>My IDE is Eclipse Juno and I have installed the toolchain support for cross platform development for CDT in the optional features. Again, trying with Eclipse, my programs compile without any problems not using the SFML API. But once I compile a program using SFML, I get the error. Yes, it working using the GNU G++ with SFML. What I've tried is downloading SFML for Windows from the download page and compile (which is what I've shown previously) but it still does not work.</p>