|
|
The compiler wrote: |
---|
C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp In function 'int main()': 8 4 C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp [Error] 'thread' was not declared in this scope 8 11 C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp [Error] expected ';' before 'mythread' 8 47 C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp [Error] expected primary-expression before ')' token 8 47 C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp [Error] expected ';' before ')' token 9 2 C:\Users\Vilim\Desktop\New folder\Neimenovano2.cpp [Error] 'mythread' was not declared in this scope |
|
|
|
|
terminate called after throwing an instance of 'std::system_error' what(): Invalid argument Hello World!Aborted |
--enable-threads=win32
or Thread model: win32
, there is no C++11 thread support.--enable-threads=winpthreads
C++11 concurrency is supported to the extent that GCC supports it. -static
switch, though.My compiler wrote: |
---|
mingw32 ../gcc-4.7.0/configure --enable-languages=c,c++,ada,fortran,objc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgomp --disable-win32-registry --enable-libstdcxx-debug --disable-build-poststage1-with-cxx --enable-version-specific-runtime-libs --build=mingw32 --prefix=/mingw win32 --param ggc-min-expand=100 --param ggc-min-heapsize=131072 --param ggc-min-expand=100 --param ggc-min-heapsize=131072 9fc40f37d31a03e5502141ce58bdf4c7 |
_GLIBCXX_HAS_GTHREADS && (ATOMIC_INT_LOCK_FREE > 1)
(other than native win32 threads) |
boost::<whatever>
with std::<whatever>