A difficult question about locale_mutex uninitialized

Benjamin Kosnik bkoz@redhat.com
Thu Sep 7 18:01:00 GMT 2006

(on-list reply to off-list followup, author stripped by request)

> [Off list]
> Doesn't the compiler itself also have to be originally built with thread
> support (one of the magic configure flags)?

Yes. Many of the targets for gcc default to thread support, such as
some of the BSD's and linux.

> Hence to see the thread model (g++ -v test.cpp):
> ... yada yada yada ...
> Thread model: posix
> ... yada yada yada ...

Exactly. This is the best way to see if your compiler is configured

> So *IF* the compiler (or in this case, the cross-compiler) was built without
> the threading support, *OR* *IF* the libstdc++.a was built without threading
> support... bad things happen.



More information about the Libstdc++ mailing list