This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin64: c++11 thread support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]