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: Re: Cygwin64: c++11 thread support


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


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