Identifier uint8_t is undefined - Visual Studio 2017

Sinem picture Sinem · May 15, 2018 · Viewed 13.8k times · Source

I get an error with the type definitions. I am working with Visual Studio 2017 and so I included stdint.h for the type definitions. But I still have the Problem that the identifier uint8_t is undefined.

What's the problem?

Answer

PanicMan picture PanicMan · May 15, 2018

it is defined in "stdint.h", add that on the top of your cpp-file:

#include <stdint.h>