glibc 2.1.1pre2 breaks libstdc++-v3 build

Ulrich Drepper drepper@redhat.com
Thu Jan 11 10:22:00 GMT 2001


"Joseph S. Myers" <jsm28@cam.ac.uk> writes:

> (a) Is this really a good idea, or should such changes printf -> fprintf
> not rather be achieved by extracting "stdout" somehow (as discussed on the
> gcc lists from time to time) in GCC?

No.  Stdout is defined to be a macro which the compiler cannot know about.

> (b) libstdc++-v3 should be undefining the macro printf.

In any case, yes.  All functions are also allowed to be macros.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libstdc++ mailing list