You need #include <cstdint> , but this may not always work.
The problem is that some compilers often automatically export names defined in different headers or provided types before such standards were in place.
Now I said that "may not always work." This is because the cstdint header is part of the C ++ 11 standard and is not always available for current C ++ compilers (but this often happens). The stdint.h header is the equivalent of C and is part of C99.
For better portability, I would recommend using the boost/cstdint.hpp if you want to use boost. Otherwise, you can probably get away with C # include'ing <cstdint> .
plasma Jun 17 '12 at 5:35 2012-06-17 05:35
source share