X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=exUMJviS7lHRGEvTjqg+KQWBbHGqlV7rmS9phyk2Xf1
	IrRXd1gk3cSqiuFB26YvSXsLND+CMU3RVSFccx9n0x8mNsABrafzpDaPtOgZROlq
	TySj55iy/1m0KucKAle9dIOhPnAVjk8/NQRQFtwR81iXlkKTdGIJMZDa8eDqYBWM
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=wLPoBL95mHgrzKrhNf60FUiSGtI=; b=pk+BdibbGdBNlov/1
	qtJT38HFMQnI8g1Ugmth6KHnmjBT6omJk9Hgz21MdyIjhPxpvxKtbpbVPswpWUHS
	9xji01OI9xlhwQOoR6thnMUqEvms5uGTm1Pm15N51naBRCmCRR6Eez1VjLnUoqVz
	MWnxM9g+Srt43Exzi7tRfKNCcA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ie0-f181.google.com
X-Received: by 10.43.143.211 with SMTP id jn19mr13015340icc.0.1389674249487;        Mon, 13 Jan 2014 20:37:29 -0800 (PST)
Message-ID: <52D4BF0D.40704@users.sourceforge.net>
Date: Mon, 13 Jan 2014 22:37:33 -0600
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: error: mkstemp was not declared in this scope
References: <F9A2DD7F-D2D0-4F7D-9129-3A0805FC8DEF@gmail.com>
In-Reply-To: <F9A2DD7F-D2D0-4F7D-9129-3A0805FC8DEF@gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

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

