Hi does opensuse have a package for c++ man pages?
As far as I can see (I am on Leap 15.4) the man pages are part of the gcc-c++ package.
gcc-c++ - The system GNU C++ Compiler
/usr/bin/c++
/usr/bin/g++
/usr/share/man/man1/c++.1.gz
/usr/share/man/man1/g++.1.gz4 files total
And I can do
man c++
getting
GCC(1) GNU GCC(1)
NAME
gcc - GNU project C and C++ compiler
SYNOPSIS
gcc -c|-S|-E] -std=standard]
-g] -pg] -Olevel]
-Wwarn...] -Wpedantic]
-Idir...] -Ldir...]
-Dmacro=defn]...] -Umacro]
-foption...] -mmachine-option...]
-o outfile] @file] infile...
Only the most useful options are listed here; see below for the
remainder. g++ accepts mostly the same options as gcc.
DESCRIPTION
When you invoke GCC, it normally does preprocessing, compilation,
.....
.....
.....
Is that not so in your case?
I can man c++ but i want to man stuff like cin and cout is there anything like that? like for c i can man printf and man malloc with the right package.
I’m assuming that, you mean the C++ Language Reference as a Man Page –
- There ain’t anything like that.
But, there’s the C++ Foundation – the keepers of the Standard – <https://isocpp.org/>
- Take a look at “Get Started!” – <https://isocpp.org/get-started>.
From there, either buy the Language Reference book or, inspect the recommended Web Site – <https://en.cppreference.com/w/>.
Alternatively, if you’re using KDE Plasma, install KDevelop – the debugger has all the valid language syntax built-in …
Similarly, for other Integrated Development Environments …
alright thanks i just seen on other platforms they have stuff like cppman or something but ok thanks.
At least for the case of Ubuntu you may well be correct – for the case of ArchLinux, it isn’t clear if the package is being maintained – for the case of openSUSE, it seem that, there’s a private build available for Tumbleweed.
- Please be aware of the following from the Ubuntu Man Page –
cppman generates C++ manual pages from cplusplus.com and provide a man-like interface to
view man pages.
By default, cppman fetches man pages on-the-fly, by running the command 'cppman -c', all
available manpages are cached, making offline browsing possible. This is also required if
you want to use the system 'man' command.
Browsing man pages
cppman uses Vi Improved as a pager.
Press 'q' to leave pager. Press 'K' on an entry like 'vector::insert(3)' links you to the
manual page of vector::insert, like a hyperlink.
man compatibility
cppman automatically adds '~/.local/share/man' to '~/.manpath', so the cached man pages
can also be viewed with 'man' command. Note that to view uncached man pages, you still
need to run 'cppman'.
Please note that, the C++ Foundation has replaced “cplusplus.com” – they’re currently recommending “cppreference.com” …
Please do not forget the GNU C++ Library – <https://gcc.gnu.org/onlinedocs/libstdc++/>.