This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
strict C++ mode
- From: John Love-Jensen <eljay at adobe dot com>
- To: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 28 Mar 2007 08:17:21 -0500
- Subject: strict C++ mode
Hi everyone,
Is there a way to get GCC to compile C++ in a "strict C++" mode?
By "strict C++" I mean that when I include <cstdio>, I get symbols that are
required by ISO 14882, but I don't get symbols that are not specified in ISO
14882.
So I'd get:
std::printf
But I would not get:
::printf
And I would not get any #define's that are not required by ISO 14882. (Not
including header guards that have a double-underscore or start with
underscore-capital letter.)
Thanks,
--Eljay