Op 7 apr. 2013 00:18 schreef "K. Frank" <[email protected]> het volgende:
>
> Hello List and Ruben!
>
> I downloaded Ruben's new std::thread-enabled build, namely:
>
> x86_64-w64-mingw32-gcc-4.8-stdthread-win64_rubenvb.7z
>
> It reports:
> g++ --version
> g++ (rubenvb-4.8-stdthread) 4.8.1 20130324 (prerelease)
>
> It stills seems to have the "-static" issue when using std::thread.
Yes, i forgot to apply the patch circumventing the binutils weak linking
bug that libstdc++ expects to be functional. My bad.
I'll try to build a new one tomorrow.
Ruben
>
> Specifically, I have a simple test program that spawns a thread and then
> joins it. If I compile thus:
>
> g++ -static -std=c++11 -o std_thread_test_a2 std_thread_test_a2.cpp
>
> it runs fine. If I leave the "-static" out:
>
> g++ -std=c++11 -o std_thread_test_a2 std_thread_test_a2.cpp
>
> it crashes, throwing the following error:
>
> terminate called after throwing an instance of 'std::system_error'
> what(): Enable multithreading to use std::thread: Operation not
permitted
>
> This is the same behavior I saw (that I think was recognized as an issue)
> with one of Ruben's 4.7 std::thread-enabled builds, namely:
>
> x86_64-w64-mingw32-gcc-4.7.0-stdthread_rubenvb.7z
>
> Is there any way I can use the std::thread support without linking
statically?
>
> Thanks.
>
>
> K. Frank
>
>
------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> Mingw-w64-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire
the most talented Cisco Certified professionals. Visit the
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public