c++ - 'uint32_t' does not name a type - Stack Overflow
The other answers assume that your compiler is C++11 compliant. That is fine if it is. But what if you are using an older compiler? I picked up the following hack somewhere on the net. It works well enough for me: #if defined __UINT32_MAX__ or UINT32_MAX ...