I\'m on Windows 10 with MinGW, and recently updated my g++, using mingw-get update and mingw-get upgrade. This error occurred, even af
g++
mingw-get update
mingw-get upgrade
I still have not found a solution. The above did not work for me. For now, I'm using visual studios compile via command line cl /EHsc somefile.cpp. Here is a reference, https://msdn.microsoft.com/en-us/library/ms235639.aspx.
cl /EHsc somefile.cpp