enabling EHsc

Hi
i have installed latest version of codeblocks 12.11 and wrote a an example code and tried to run it but it says


"c4530 c++ exception handler used but unwind semantics are not enabled. Specify /EHsc "

here is my code:

#include <iostream>
using namespace std;
int main()
{
double r = 0;//man kan egentligen ha inget värde där men då har variabeln skräp värde
const double pi = 3.14159;
double area = 0;
double circumference =0;
cout << "skriv r värdet \n";
cin >> r;
area = pi * r * r;
circumference = 2 * pi * r;
cout << "area =" << area <<endl;
cout << " circumference = " << circumference << endl;

return 0;
}

Thanks in advance
Topic archived. No new replies allowed.