Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error: unknown type name 'intptr_t'

Tags:

c

mingw

intptr

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?

like image 402
liamzebedee Avatar asked Jan 28 '12 00:01

liamzebedee


1 Answers

You need to include stdint.h.

Note that intptr_t and uintptr_t are indeed C99 types but they are optional.

like image 120
ouah Avatar answered Sep 16 '22 12:09

ouah