I am trying to create an i2c communication in raspbery Pi(debian wheezy) using Qt creator with rpi-hw library. I successfully compiled and installed the rpi-hw library in my linux system. But when I try to include this in my Qt. Got the following errors.

/usr/include/c++/4.7/bits/c++0x_warning.h:32: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
/usr/include/rpi-hw.hpp:159: In file included from /usr/include/rpi-hw.hpp:159:0,
/home/pi/untitled/main.cpp:2: from ../untitled/main.cpp:2:
/usr/include/rpi-hw/types.hpp:32: error: 'std::int8_t' has not been declared
/usr/include/rpi-hw/types.hpp:33: error: 'std::int16_t' has not been declared
/usr/include/rpi-hw/types.hpp:34: error: 'std::int32_t' has not been declared
/usr/include/rpi-hw/types.hpp:35: error: 'std::int64_t' has not been declared
/usr/include/rpi-hw/types.hpp:37: error: 'std::uint8_t' has not been declared


Any one know how to fix this in my Qt creator. I tried to add -std=gnu++11 in Projects->Build Steps-> Additional arguments but no luck

Please help.