This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Cygwin64: c++11 thread support
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 09 May 2013 23:57:57 -0500
- Subject: Re: Cygwin64: c++11 thread support
- References: <CAOEU_bL1nRU3-PGRVPTaCupxeN5hNy25LJw8N7RtxTmyFnNkVg at mail dot gmail dot com>
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