This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc 3.0, printf() and exim-3.30
- To: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- Subject: Re: Gcc 3.0, printf() and exim-3.30
- From: Andreas Schwab <schwab at suse dot de>
- Date: 21 Jun 2001 12:04:12 +0200
- Cc: Nix <nix at esperi dot demon dot co dot uk>, Vadim Vygonets <vadik at vygo dot net>,gcc at gcc dot gnu dot org
- References: <20010621072341.A31438@daikokuya.demon.co.uk>
Neil Booth <neil@daikokuya.demon.co.uk> writes:
|> No - it's just what the error message says. Glibc defines printf as a
|> macro when you compile with optimisation on. So you cannot have
|> directives inside a printf call. I don't know if / why this works
|> with GCC 2.95.2.
The macro is only defined when compiling with gcc >= 2.97.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5