Bug? on mkstemp
Jong B. Lee
jbdoll@kepri.re.kr
Tue Dec 5 22:08:00 GMT 2000
I don't know why the parse error occurs when compile the following file.
gcc -c conf.c is working well.
But,
c++ -c conf.C fails :
conf.C : parse error before 'templete'
Is this a BUG ?
By the way, I couldn't find where mkstemp is declared.
Could not find it in <stdio.h>, nor in <stdlib.h>
--------------------
conf.c
--------------------
#include <stdio.h>
#include <sys/param.h>
#ifdef __cplusplus
extern "C"
#endif
int mkstemp(char * template);
int main() {
char path[MAXPATHLEN];
int fd;
sprintf(path,"/tmp/test.XXXXXX");
fd = mkstemp(path);
return 0;
}
----------------------
More information about the Cygwin
mailing list