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
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
2 matches
Mail list logo