Suresh Govindachar 2014-05-17 03:45:
> Hello,
Hi,

> 
> The page http://mingw-w64.sourceforge.net/download.php says:
> "C11/C++11 Threading: C11 and C++11 have added threading support at
> the language level; this requires the winpthreads library which comes
> with the toolchains and changes little for users not relying on it."
> 
> 1)  Am I correct in understanding "which comes with the toolchains"
> does _not_ include "win32" builds such as
> x86_64-4.8.2-release-win32-seh-rt_v3-rev4.7z, and applys only to
> "posix" builds?
yes, only builds using 'posix threads' supports 'C++11 thread support 
library':
http://en.cppreference.com/w/cpp/thread

> 2) When I tried to use g++ from
> x86_64-4.8.2-release-posix-seh-rt_v3-rev4.7z
> (x86_64-w64-mingw32-g++.exe (x86_64-posix-seh-rev4, Built by MinGW-W64
> project) 4.8.2), I got the message about missing libwinpthread-1.dll:
> 
> Command used to compile (all in one line without '\'):
> 
>     /c/opt/mingw64/bin/x86_64-w64-mingw32-g++.exe   \
>                                    -D_WIN64 \
>                                    -Wall \
>                                    -Wextra \
>                                    -Werror \
>                                    -std=c++11 \
>                                    -O3 \
>                                    -static\
>                                    -libgcc \
>                                    -static\
>                                    -libstdc++  \
>                                     mt.cc -o mt.exe
> 
> I do see the file /c/opt/mingw64/opt/bin/libwinpthread-1.dll -- how do
> I let the compiler (and the resulting executable) see this too?

Try this command line:
x86_64-w64-mingw32-g++.exe \
     -D_WIN64 \
     -Wall \
     -Wextra \
     -Werror \
     -std=c++11 \
     -O3 \
     -static \
     mt.cc -o mt.exe



-- 
Regards, niXman
___________________________________________________
Dual-target(32 & 64-bit) MinGW-W64 compilers for 32 and 64-bit Windows:
http://sourceforge.net/projects/mingw-w64/
___________________________________________________
Another online IDE: http://liveworkspace.org/

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to