Implicit decl warning with "-ansi"+"-Wall" option
31 Oct
2008
31 Oct
'08
2 p.m.
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
6533
Age (days ago)
6533
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jayesh Krishna