Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Re: question on...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 10 of 10 Topic 45739 of 47032
Post > Topic >>

Re: question on map< list<T>::iterator, int>

by James Kanze <james.kanze@[EMAIL PROTECTED] > May 5, 2008 at 06:12 AM

On May 4, 11:07 am, Erik Wikstr=F6m <Erik-wikst...@[EMAIL PROTECTED]
> wrote:
> On 2008-05-04 07:43, andrew.smith....@[EMAIL PROTECTED]
 wrote:

> >> This program compiles fine with the command
> >> g++ -std=3Dc++98 -pedantic -Wall -Wextra  x.cpp

> >   Why We use These Flags.?

> -std=3Dc++98 means that we want to compile the code using the
> C++ 98 standard, -pedantic enables warnings for everything
> that should produce a warning and rejects usages of private
> extansions.

Not entirely.  It does turn off some very ****table "future"
features, like long long, but it leaves some g++ extensions
active, including cases which render the compiler non-conformant
active.

> -Wall and -Wextra turns on lots of warnings in case you do
> something dubious.

And some which aren't dubious at all:-).

More to the point: if you're just learning C++, you should
probably invoke it however your instructor says to invoke it,
without worrying too much about why.  Otherwise, you should
definitely read the do***entation, and understand what each
option does, and why you want it, or not.  For a variety of
reasons, all compilers require a fairly long list of options in
practice---200 or 300 hundred characters seems to be about a
minimum.  (I need long long in my work, for example, so I can't
use -pedantic.  But I can turn on most of what -pedantic
encomp***** individually.)

--
James Kanze (GABI Software)             email:james.kanze@[EMAIL PROTECTED]
 en informatique orient=E9e objet/
                   Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34
 




 10 Posts in Topic:
question on map< list::iterator, int>
"subramanian100in@[E  2008-05-03 05:48:01 
Re: question on map< list::iterator, int>
=?utf-8?Q?David_C=C3=B4me  2008-05-03 15:06:58 
Re: question on map< list::iterator, int>
Paul Brettschneider <p  2008-05-03 15:21:01 
Re: question on map< list::iterator, int>
Pete Becker <pete@[EMA  2008-05-03 10:08:27 
Re: question on map< list::iterator, int>
andrew.smith.cpp@[EMAIL P  2008-05-03 22:43:55 
Re: question on map< list::iterator, int>
Ian Collins <ian-news@  2008-05-04 17:57:05 
Re: question on map< list::iterator, int>
=?UTF-8?B?RXJpayBXaWtzdHL  2008-05-04 09:07:24 
Re: question on map< list::iterator, int>
andrew.smith.cpp@[EMAIL P  2008-05-04 21:42:27 
Re: question on map< list::iterator, int>
James Kanze <james.kan  2008-05-05 06:03:42 
Re: question on map< list::iterator, int>
James Kanze <james.kan  2008-05-05 06:12:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:53:11 CDT 2008.