Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Message "unknown type name 'uint8_t'" in MinGW

Tags:

c

windows

mingw

I get "unknown type name 'uint8_t'" and others like it using C in MinGW.

How can I solve this?

like image 612
RobotRock Avatar asked Jan 21 '12 13:01

RobotRock


People also ask

Where is uint8_t defined in C?

In C, the unsigned 8-bit integer type is called uint8_t . It is defined in the header stdint. h . Its width is guaranteed to be exactly 8 bits; thus, its size is 1 byte.

Which library contains uint8_t?

My LCD library uses uint8_t types.

What is the difference between Uint8 and uint8_t?

The difference between Uint8 and uint8_t will depend on implementation, but usually they will both be 8 bit unsigned integers. Also uint8_t and uint16_t are defined by C (and maybe C++) standard in stdint. h header, Uint8 and Uint16 are non-standard as far as I know.


1 Answers

Try including stdint.h or inttypes.h.

like image 77
cnicutar Avatar answered Sep 19 '22 14:09

cnicutar