This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Threads, glibc, and all that
Jason Merrill <jason@cygnus.com> writes:
> Huh? -ansi just means "compile all conformant code".
Exactly. This also means that headers which might provide conflicting
definitions (e.g., global variables, macros) must not be used. E.g.,
pthread.h contains a macro named PTHREAD_COND_INITIALIZER and so
including this header is invalid because now you cannot write anymore
a valid ISO C program which defines a local variable named
PTHREAD_COND_INITIALIZER.
-- Uli
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
- References:
- Re: Threads, glibc, and all that
- Re: Threads, glibc, and all that
- Re: Threads, glibc, and all that
- Re: Threads, glibc, and all that
- Re: Threads, glibc, and all that
- Re: Threads, glibc, and all that