This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Linux compiler Question
- From: Phil Edwards <phil at codesourcery dot com>
- To: Mohammed Sultan <Mohammed dot Sultan at ops dot de>
- Cc: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Mon, 24 Nov 2003 11:26:30 -0500
- Subject: Re: Linux compiler Question
- References: <3FC1E590.62766DF0@ops.de>
On Mon, Nov 24, 2003 at 12:03:44PM +0100, Mohammed Sultan wrote:
> Hi There,
>
> When I give gcc -v on kaldera version 3.1.1,It gives me the following
>
> Thread model:single &
> Gcc version Number
>
> [1]So,If my program is multithreaded, & the thread model is
> "Single",Will the libraries like STL etc be thread safe.
No.
http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_6
> [2]Should I have to change the Thread Model to "PThread" then...
The compiler and its runtime libraries must be rebuilt in order to do that.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan