Dave's Brain

Browse - Programming Tips - I am getting a compile error about uint8_t undefined.

Date: 2015jun10
Language: C/C++
Keywords: uint16_t, uint32_t, uint64_t

Q.  I am getting a compile error about uint8_t undefined.
How can fix it?

A.  On Linux:

#include <inttypes.h>
On Windows:
#include <stdint.h>
More info http://en.wikipedia.org/wiki/C_data_types#stdint.h

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.