Oct 1, 2013 at 5:41pm UTC
The code is right!
I compiled with Clang in Mac OS X
Try Microsoft Visual Studio!
Oct 1, 2013 at 5:50pm UTC
>Have you tried reinstalling your compiler?
I went through and did an upgrade of MinGW (from version 4.7.something), but I could try a proper clean and reinstall at some point.
>If you are on a 64-bit system, I recommend using nuwen MinGW
That does the job, thank you! Perhaps one day I'll even work out what the cause of the crashing was - still very odd it only affected C++ and not C.
Oct 1, 2013 at 5:58pm UTC
You have to completely remove old installations before upgrading to new ones - files can be deleted in newer versions but simply copying over the old version won't delete the files, and you'll confuse the compiler.
Oct 1, 2013 at 7:17pm UTC
I used mingw-get, and you'd have
hoped it wouldn't end up making a mess of itself on update, given it's the entire point of the program!
Oct 1, 2013 at 7:28pm UTC
There seems to be a difference between using gcc or g++ when using mingw. You can use gcc but there are extra options required.