error: use of undeclared identifier 'errno_t'
问题 Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which surprisingly raises this error: main.c:5:5: error: use of undeclared identifier 'errno_t' errno_t x; ^ I started to follow the traces : when the compiler sees the <...> inclusions it will first look at /usr/include where of course I found errno.h file. Actually it has a single line in it, besides the license comment, which is: #include <sys/errno.h> Now, at /usr/include/sys in errno.h I found