Cygwin64: c++11 thread support

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Fri May 10 04:57:00 GMT 2013


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



More information about the Cygwin mailing list