title: MinGW w64 windows library eclipse (app crash)
body: <p>I'm trying to get C++ working properly in Eclipse but it seems that anything except the normal MinGW is failing and I have no idea what I'm doing.</p>
  
  <p>Reason I'm trying this is because MinGW complains about <code>to_string()</code> not existing in the std library and I've read that this was fixed in MinGW-w64.</p>
  
  <p>I've downloaded MinGW and MinGW-w64 to separate folders, currently MinGW is included in PATH.
  When I change my project properties [C/C++ Build -> Environment] variables to go with MinGW-w64 the stuff still builds but crashes when I try to run it.</p>
  
  <p>I'm trying to build a win32 app (<code>#include &lt;windows.h&gt;</code>)
  Flags in [C/C++ Build -> Settings -> GCC C++ Compiler -> Miscellaneous]: <code>-c -fmessage-length=0 -std=c++11 -mwindows</code></p>
  
  <p>I've also included a Pre-build step: <code>windres ../src/resources.rc -o ../Resources/resources.o</code></p>
  
  <p>And for some reason it compiles without error, but when I try to run the binary.exe it just crashes (which it didn't with normal MinGW).</p>
  
  <hr>
  
  <p>I've also looked into Cygwin but I have no idea what packages to download and I can't even find the std library, let alone the windows library, in the massive massive list of installable packages.</p>
  
  <p>I also don't want to use Visual C++ because that requires you to install Visual Studio (an IDE I loathe because of reasons(yes, multiple))</p>
  
  <p>I'm doing the minor "Games Programming" and my school is giving us a crash-course C++ (which exists of six 3 hour long lessons to get a grasp of the basics) to use in building a simple game application. Problem is the teachers are Visual Studio fanboys and don't really know anything outside of that environment (most of 'em don't really seem to care either for that matter).</p>
  
  <p>I'm having a lot of trouble setting this up with no prior experience in C++ and a very janky C++ support for windows. ( I do know my fair share of Java (in Eclipse) and a bit of C# )</p>
  
  <hr>
  
  <p>I've been searching for at least an hour without any results.</p>
  
  <p>If I forgot to write down stuff or am being a total idiot here please do enlighten me.</p>
  
  <p>Any help is much appreciated</p>
  
  <hr>
  
  <p><strike>Edit: I'm suddenly getting other error output</strike> &lt;- forgot to clean before building</p>
  
  <p>Edit edit: the error:
  <a href="https://i.stack.imgur.com/G320O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G320O.png" alt="app error"></a>
  
  (hi is the icon)</p>
  
  <hr>
  
  <p>Another Edit:</p>
  
  <p>if I debug it breaks at <code>No source available for "main() at 0x4081a9"</code> which makes sense because I didn't make that kind of main because I'm writing a windows app. if I press continue it runs (what?) but then when I close it I see the following output:</p>
  
  <p><code>C++ Win32.exe</code></p>
  
  <pre><code>~"[Inferior 1 (process 7012) exited normally]
  "
  </code></pre>
  
  <p><code>gdb</code></p>
  
  <pre><code>[New Thread 7012.0x1d14]
  
  Temporary breakpoint 1, 0x00000000004081a9 in main ()
  Quit (expect signal SIGINT when the program is resumed)
  </code></pre>