delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/05/09/18:02:23

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:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; q=dns; s=default; b=mUK
a1HPpn5AfMdEBAeXr68K2TRAGlm+01eJijLrpX8oIHRhOt9d9D7viVb0AjaDSEcl
d37hkKer7toUzJOlAQIRvC8ym9HRoKKNG3KhvzJIWq8XpAIgBNzq0bK4xd7RO2pX
BLubE0JQmgMmJcL6Bs/PqYEbgAPWpuYq9J6bbSl0=
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:mime-version:date:message-id:subject:from:to
:content-type:content-transfer-encoding; s=default; bh=RFYhyLeUe
AeCUFu+odK2w2e9dYA=; b=LUHMmRgITcvd5HrKIDimSPlFZwt0sjQOF0c8q6IEu
7c/wH/JH98cq/lQYgdXeBJU7rPPoeMF/H1fULiBSeSWr4SQSSHx8HZUSie2KpIML
0LfgbdbxUJCTYCs5ihh3srTE9sU1oU2++4LBz9Z0EdfDekzD3fMy58QBn4+UPq/v
ok=
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=-0.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS,TW_CX,TW_GC,TW_IB,TW_YM autolearn=ham version=3.3.1
MIME-Version: 1.0
X-Received: by 10.49.61.106 with SMTP id o10mr11481810qer.20.1368136924946; Thu, 09 May 2013 15:02:04 -0700 (PDT)
Date: Fri, 10 May 2013 00:02:04 +0200
Message-ID: <CAOEU_bL1nRU3-PGRVPTaCupxeN5hNy25LJw8N7RtxTmyFnNkVg@mail.gmail.com>
Subject: Re: Re: Cygwin64: c++11 thread support
From: =?UTF-8?B?5byg55qb6Ze2?= <inter1965 AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r49M2J09022366

Hi, Tim
   Below are my g++ info:
--------------------------------------------------------------------------------
$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/bin/../lib/gcc/x86_64-pc-cygwin/4.8.0/lto-wrapper.exe
Target: x86_64-pc-cygwin
Configured with:
/usr/src/ports/gcc/gcc-4.8.0-2/src/gcc-4.8.0/configure
--srcdir=/usr/src/ports/gcc/gcc-4.8.0-2/src/gcc-4.8.0 --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--libexecdir=/usr/lib --datadir=/usr/share --localstatedir=/var
--sysconfdir=/etc --datarootdir=/usr/share --docdir=/usr/share/doc/gcc
-C --build=x86_64-pc-cygwin --host=x86_64-pc-cygwin
--target=x86_64-pc-cygwin --without-libiconv-prefix
--without-libintl-prefix --enable-shared --enable-shared-libgcc
--enable-static --enable-version-specific-runtime-libs
--enable-bootstrap --disable-__cxa_atexit --with-dwarf2
--with-tune=generic --enable-languages=c,c++,fortran,lto,objc,obj-c++
--enable-graphite --enable-threads=posix --enable-libatomic
--enable-libgomp --disable-libitm --enable-libquadmath
--enable-libquadmath-support --enable-libssp --enable-libgcj-sublibs
--disable-java-awt --disable-symvers
--with-ecj-jar=/usr/share/java/ecj.jar --with-gnu-ld --with-gnu-as
--with-cloog-include=/usr/include/cloog-isl --without-libiconv-prefix
--without-libintl-prefix --with-system-zlib
Thread model: posix
gcc version 4.8.0 (GCC)
--------------------------------------------------------------------------------
  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([]{});
     ^
--------------------------------------------------------------------------------
    Thx
    Best,
Zhang

--
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