Hello,

Eric Lilja wrote:

> Hello, when compiling c++ code, what difference is there between the
> flags -ansi and -std=c++98? I always use -Wall -Wextra -ansi -pedantic
> but my boss told me to skip -ansi and use -std=c++98 instead.

See the documentation on preprocessor options, for example:

http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Preprocessor-Options.html#Preprocessor-Options

-ansi seems to refer to C only.

Bernd Strieder

_______________________________________________
help-gplusplus mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to