delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/10/00:58:10

X-Recipient: archive-cygwin AT delorie DOT 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=DpfKczDYlQ9x/3tepOxjdYDGKqyEnGgg0+KbA+r+W2Y
0vZaegbRWFZvNObVeLTKnwzjkyivyzOwAXygUmm/Nl2dbnWLEZ7RkdLbIUlJ2EL/
jT/9R6fy1+E4HJWdNezr011rWSBsD+ogZOCQNQutgNd3cFiX7H6lQjVEfpuELQDs
=
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=OoIhDBYgIs95Ba3SDh/vPuB6wDc=; b=tULtVIY+HQdOrcuKv
MxBgotI5oIt7EgxhpfdlUbcS7mkJlgUTluuQqHQ4VY5dwjRQxWThAEAElAI97ofG
4Kbp4MM50LLkKzeOSzi7Tb9yEzr+bUDmnwCX2m+IjcZM/Z3xCRutZ9SWeO5lJSA1
4UJAvPDAPMAyBw+CDtnVfwTFLs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1
X-Received: by 10.50.93.72 with SMTP id cs8mr796035igb.18.1368161875306; Thu, 09 May 2013 21:57:55 -0700 (PDT)
Message-ID: <518C7E55.2090305@users.sourceforge.net>
Date: Thu, 09 May 2013 23:57:57 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz AT users DOT sourceforge DOT net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin64: c++11 thread support
References: <CAOEU_bL1nRU3-PGRVPTaCupxeN5hNy25LJw8N7RtxTmyFnNkVg AT mail DOT gmail DOT com>
In-Reply-To: <CAOEU_bL1nRU3-PGRVPTaCupxeN5hNy25LJw8N7RtxTmyFnNkVg@mail.gmail.com>
Note-from-DJ: This may be spam

On 2013-05-09 17:02, 张皛闶 wrote:
>     Below are my g++ info:
[snip]
>    With a simple cpp file
> --------------------------------------------------------------------------------
> $ cat b.cpp
> #include <thread>
> int main(int argc, char *argv[]) {
>      std::thread([]{});
>      return 0;
> }
> --------------------------------------------------------------------------------
>     I got the following output:
> --------------------------------------------------------------------------------
> $ g++ -std=gnu++1y -fsyntax-only b.cpp
> b.cpp: In function ‘int main(int, char**)’:
> b.cpp:3:5: error: ‘thread’ is not a member of ‘std’
>       std::thread([]{});
>       ^

Thank you for the STC.  The problem was caused by a typo in stdint.h 
which was fixed after I built the 64bit gcc 4.8.0-2 release.  As 
experimental as it is, std:thread will be available in the next release 
of gcc.


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019