help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flags -ansi and -std=c++98


From: Bernd Strieder
Subject: Re: Flags -ansi and -std=c++98
Date: Thu, 19 Oct 2006 17:47:33 +0200
User-agent: KNode/0.10.1

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]