I'm trying to compile this source code :
// exception_set_unexpected.cpp
// compile with: /c /EHsc
#include<exception>
#include<iostream>
using namespace std;
void unfunction( )
{
cout << "I'll be back." << endl;
terminate( );
}
int main( )
{
unexpected_handler oldHand = set_unexpected( unfunction );
unexpected( );
}
How can i add compile with: /c /EHsc
option in Visual Studio 2010 ?