error: ‘uint16_t’ undeclared?
You need to include stdint.h or inttypes.h to get uint16_t.
You need to include stdint.h or inttypes.h to get uint16_t.
They most often come from forgetting to include the header file that contains the function declaration, for example, this program will give an ‘undeclared identifier’ error: Missing header int main() { std::cout << “Hello world!” << std::endl; return 0; } To fix it, we must include the header: #include <iostream> int main() { std::cout << … Read more