This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: error: mkstemp was not declared in this scope
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Mon, 13 Jan 2014 22:37:33 -0600
- Subject: Re: error: mkstemp was not declared in this scope
- Authentication-results: sourceware.org; auth=none
- References: <F9A2DD7F-D2D0-4F7D-9129-3A0805FC8DEF at gmail dot com>
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.
Yaakov
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple