Re: [Mingw-w64-public] Getting started building examples that use std::thread
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
Re: [Mingw-w64-public] Getting started building examples that use std::thread
On 5/16/2014 5:45 PM, niXman wrote: > Suresh Govindachar 2014-05-17 03:45: >> Hello, > Hi, >> >> The page http://mingw-w64.sourceforge.net/download.php says: [...] >> 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 '\'): [fixed typo in original email involving the two "-static" prefixes:] >> /c/opt/mingw64/bin/x86_64-w64-mingw32-g++.exe \ >> -D_WIN64 \ >> -Wall \ >> -Wextra \ >> -Werror \ >> -std=c++11 \ >> -O3 \ >> [fixed typo]-static-libgcc \ >> [fixed typo]-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 Upgraded to 4.9.0 (x86_64-posix-seh-rev1, Built by MinGW-W64 project). Tried the above command and the one below -- both give the same pop-up error message from cc1plus.exe about not finding libwinpthread-1.dll: /c/opt/mingw64/bin/x86_64-w64-mingw32-g++.exe \ -D_WIN64 \ -Wall \ -Wextra \ -Werror \ -std=c++11 \ -O3 \ -static \ -static-libgcc \ -static-libstdc++ \ -L/c/opt/mingw64/bin/ mt.cc -o mt.exe Perhaps I need to set some environment variable? --Suresh -- "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
Re: [Mingw-w64-public] Getting started building examples that use std::thread
Suresh Govindachar writes: >Upgraded to 4.9.0 (x86_64-posix-seh-rev1, Built by MinGW-W64 > project). Tried the above command and the one below -- both give the > same pop-up error message from cc1plus.exe about not finding > libwinpthread-1.dll: [snip] >Perhaps I need to set some environment variable? Try putting the dll on a directory listed on the PATH environment variable or on the directory where your executable is. -- "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
Re: [Mingw-w64-public] Getting started building examples that use std::thread
On 5/16/2014 6:52 PM, Óscar Fuentes wrote: > Suresh Govindachar > writes: > >> Upgraded to 4.9.0 (x86_64-posix-seh-rev1, Built by MinGW-W64 >> project). Tried the above command and the one below -- both give the >> same pop-up error message from cc1plus.exe about not finding >> libwinpthread-1.dll: > [snip] >> Perhaps I need to set some environment variable? > > Try putting the dll on a directory listed on the PATH environment > variable or on the directory where your executable is. Doing: export PATH=$PATH:/c/opt/mingw64/bin resolved the issue. Thanks, --Suresh -- "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