The gcc compiler options swallow the mkstemp declaration. MPICH2 or MPE's configure checks for mkstemp declaration (and other common libc functions) to see if it exists (especially when --enables-strict is used) If not, the configure will insert mkstemp declaration. ----- "Jayesh Krishna" <[email protected]> wrote:
Hi,
========================================= #include <stdlib.h>
/* extern int mkstemp(char *); */ int main(int argc, char *argv[]){ int fd = -1; char template[] = "temp_XXXXXX"; fd = mkstemp(template); return 0; } =========================================
The code above gives me the following warning when compiled with "-Wall" & "-ansi" option with gcc,
========================================= shakey:/sandbox/jayesh/Enhancements/NemesisOnWindows/testPgms> gcc -ansi -Wall test.c test.c: In function â?~mainâ?T: test.c:7: warning: implicit declaration of function â?~mkstempâ?T =========================================
Any ideas ?
-Jayesh