Re: A difficult question about locale_mutex uninitialized

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(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
correctly.

> 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.

Yep.

-benjamin

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux