Threads, glibc, and all that

Ulrich Drepper drepper@cygnus.com
Wed Feb 25 12:23:00 GMT 1998


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



More information about the Gcc-bugs mailing list