I followed the instruction here on setting up CodeBlocks to use GCC 4.7.1 .the sample provided at the page i mentioned is compiled just fine,But when i tried to compile the
MinGW simply won't compile with '-std=c++0x'. Strange enough, '-std=gnu++0x' works.