[Bug libstdc++/52681] [C++11] Using std::thread without -pthread crashes without warning

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 23 12:44:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52681

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|minor                       |enhancement

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-23 12:31:38 UTC ---
The problem is that not all targets need -pthread, or some which do need it
spell it differently, and not all platforms define _REENTRANT when the option
is used, so there's no reliable way to do what you're asking for.



More information about the Gcc-bugs mailing list