Re: error: mkstemp was not declared in this scope

2014-01-13 Thread Yaakov (Cygwin/X)
On 2014-01-13 15:32, Alex Reynolds wrote: $ g++ -Wall -ansi -pedantic foo.cpp foo.cpp: In function ‘int main()’: foo.cpp:44:21: error: ‘mkstemp’ was not declared in this scope mkstemp isn't ANSI C, so don't compile with -ansi; this wouldn't work with linux gcc either. Yaak

error: mkstemp was not declared in this scope

2014-01-13 Thread Alex Reynolds
foo.cpp: In function ‘int main()’: foo.cpp:44:21: error: ‘mkstemp’ was not declared in this scope - Here is my code: - # # foo.cpp # #include #include #include #include #include #ifndef P_tmpdir #ifdef _P_tmpdir