strict C++ mode

John Love-Jensen eljay@adobe.com
Wed Mar 28 14:05:00 GMT 2007


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



More information about the Gcc-help mailing list