JLBorges wrote: |
---|
Yeah, man g++ is pretty silly unless you know what you are looking for; you just get a massive wall of poorly formatted text with no cross-reference or navigation.
Try this instead |
1. The man-pages do have quite systematic format. There might be info-pages too (which are multipage with some links:
2. One should not run man or info from vim, but from bash.
3. We know exactly what to look for.
* In
man type '
/'. (That is equivalent of Ctrl-f of some other programs.)
* Type
-std= (and Return) The hits are highlighted and focus is on the first of them.
* Type '
n' to jump to next hit (just like you might use 'F3' is some other programs.
4. There is a problem with online docs. They are for some version. The installed GCC might be different. The local man-page describes the options of the installed version. That was the question.
5. One can check the version of g++ with:
However, some distros
backport features and thus the version-number is not always the whole truth.
6. The man and info do have documentation too:
man man
man info
info man
info info |
TheIdeasMan wrote: |
---|
On Linux, It is fairly easy to update one's compiler to the latest version. |
Basically true, but depends on distro. Most distro's have package management, (which one should use). That is likely to offer a specific version of GCC, if other packages depend on it. An update may thus be trivial/automatic or non-trivial.