C++ Exception Handling Must be Enabled for the Standard C++ Library
Any file that uses the Standard C++ library must be compiled with C++ exception handling enabled. C++ exception handling is enabled by default, or can be enabled by selecting the Enable exception handling option in the C++ Language category of the C/C++ tab in the Project Settings dialog box, or by using the /GX compiler switch.