The following simple test<br><br>#include<iostream><br>#include<cstdio><br>#include<cstdint><br>using namespace std;<br><br>int main() <br>{<br>    int16_t b = 20;<br>    printf("%d\n", b);<br>}<br>

<br>when complied with <br><br>>[deleisha@deleisha mytestcode]$ clang++ --version<br>>clang version 3.0 (tags/RELEASE_30/final)<br>>Target: x86_64-unknown-linux-gnu<br>>Thread model: posix<br>>[deleisha@deleisha mytestcode]$ <br>

<br>produces<br><br>[deleisha@deleisha mytestcode]$ clang++ stdint_test.cpp <br>In  file included from stdint_test.cpp:3:<br>In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cstdint:34:<br>

/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x.<br>      This support is currently experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.<br>

<i>#error This file requires compiler and library support for the upcoming \</i><br> ^<br>1 error generated.<br>[deleisha@deleisha mytestcode]$<br><br>telling that c++0x must be enabled.<br><br>gcc gives same thing<br><br>

>[deleisha@deleisha mytestcode]$ g++ stdint_test.cpp <br>>In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/cstdint:35,<br> >                from stdint_test.cpp:3:<br>>/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/c++0x_warning.h:31:2: error: #error This file requires compiler and library support for the upcoming ISO C++ standard, C++0x. This support is currently >experimental, and must be enabled with the -std=c++0x or -std=gnu++0x compiler options.<br>

>[deleisha@deleisha mytestcode]$ <br><br><br>May  be this is because, in my setup, clang is using gcc headers, but clang++ 's<i> </i>(#error line in italics above) is confusing. <br><br>BUT my major worry is that, I am hoping that stdint.h are part c99 std. So is warning seems to irrelevant. <br>

Any explanation would help. <br><br>Regards<br>--Dev<br><i><br></i><br>