https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102962
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Marco Mengelkoch from comment #0) > I know that there might be differences between compilers, but as this is > basically both g++, I assumed that the application should work the same way. No, that's not a safe assumption at all. Libstdc++ uses the platform's pthread types, it doesn't define them itself.