I have a problem with the function mkstemp(). GCC compiler on cygwin generates a warning:
implicit declaration of function ‘mkstemp‘
GCC flags: -std=c99 -Wall
Includes:
#include </usr/include/stdlib.h>
#include </usr/include/unistd.h>
I have a problem with the function mkstemp(). GCC compiler on cygwin generates a warning:
implicit declaration of function ‘mkstemp‘
GCC flags: -std=c99 -Wall
Includes:
#include </usr/include/stdlib.h>
#include </usr/include/unistd.h>
In my
cygwinstdlib.hhasmkstempdeclaration guarded like this:Seems like
mkstempis notANSI C. Make sure you don't have your compiler set to enforce a specific standard (ditch thec99) and don't use-ansi/-pedanticflags.Also ... ditch the
/usr/include/part in your#includes. The compiler takes care of that for you.