is gcc 2.95.2 -pthreads recommended?
Benjamin Kosnik
bkoz@redhat.com
Tue Mar 20 17:29:00 GMT 2001
> Is gcc -pthreads the recommended way of using libstdc++ (with 2.95.2)
> in an multi-thread safe way?
yes
>
> Also, is --enable-threads supposed to cause gcc to #define _PTHREADS
> or __STL_PTHREADS by default? We have gcc installations that appear
> to #define __STL_PTHREADS by default (on Linux?), and we have others
> (built on SunOS 5.8 with and without --enable-threads) that do not.
__STL_PTHREADS is deprecated. That was usually defined in stl_config.h
_PTHREADS is defined with -pthreads.
More information about the Libstdc++
mailing list