On 10/03/15 18:39, Jorgen Grahn wrote:
> On Sun, 2015-03-08, David Brown wrote:
>> On 07/03/15 20:44, Jorgen Grahn wrote:
>>> On Tue, 2015-03-03, Scott Lurndal wrote:
>>>> bilsch <
kin...@comcast.net> writes:
>>> ...
>>>>> compile one of the demonstration programs (listed below) but I got the
>>>>> following error from g++ that comes with Ubuntu:
>>>>>
>>>>> error: range-based ???for??? loops are not allowed in C++98 mode
>>>>
>>>> man pages are your friend:
>>>>
>>>> bash$ man g++ | col -b | grep -i c++11
>>>
>>> Yes, but with GCC you really need the info pages. Not my favorite
>>> documentation format, but that's where the full compiler documentation
>>> is, so you need to have it and be able to navigate it.
>
>> I have never found "info" pages to be any use. The gcc manuals are fine:
>>
>> <
https://gcc.gnu.org/onlinedocs/>
>
> Aren't those the same thing as the info pages, though?
It is quite possible that they are the same - I don't find info pages
useful because the format is terrible and navigation is difficult, not
because the information contained is bad. HTML format is great for
jumping around, and for having multiple tabs with different parts of the
documentation open at once. PDF format is great when you want to read
through documentation like a book, search the whole thing, or print out
pages. I therefore have not bothered looking at the gcc info pages.
>
>> Use the online html, html tarballs, or pdf files according to preference.
>
> It's an individual preference. I hate info, but at least I can use it
> within Emacs which I'm using /anyway/ ... and the HTML stuff inherits
> some of the bad aspects of the info documentation so you suffer from
> it, to some degree, in either case.
Indeed it is a matter of personal preference - I guess /some/ people
must like info!
However, /you/ were the one who said you didn't like info, but felt you
had to use it to get the information you needed - I was just trying to
be helpful by recommending alternative formats with (apparently) the
same information.
>
> And the main point was "there's important documentation for GCC which
> isn't in the man pages".
>
>> gcc also comes with a fairly good built in help (with "--help -v" as a
>> starting point) - recent versions let you get details of different
>> groups of command-line switches.
>
> Never tried it. But I should add that I looked at the man page now,
> and it was better than I remembered it -- at least command-line
> options and environment variables were properly documented, not just
> listed with no explanation like I remembered them.
>
The man pages and the built-in help have all got very much better in
recent versions of gcc.