i installed the gcc 4.2.1,it worked well,but i found that the dbg can not work.just as follow:
int main()
{
int i=8,j=9;
int k=i+j;
cout<<"k="<<k<<endl;
return 0;
}
when i debug ,the watch window should show the values of i,j and k,but valued showed in the window are obviously wrong .but when i replaced Gcc by 3.4.5,it can correctly show the values.i can not understand why?