I am receiving this error while compiling a C program in MinGW. As far as I know, I thought 'intptr_t' was a type in the C99 standard. Am I not including a file?
Asked
Active
Viewed 1.5k times
11
-
In my case, it was a wrong msys2 setup. I had success with Visual Studio 2019. – koppor Oct 04 '20 at 20:04
1 Answers
23
You need to include stdint.h
.
Note that intptr_t
and uintptr_t
are indeed C99 types but they are optional.

ouah
- 142,963
- 15
- 272
- 331