<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://bitpost.com/w/index.php?action=history&amp;feed=atom&amp;title=Gcc</id>
	<title>Gcc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://bitpost.com/w/index.php?action=history&amp;feed=atom&amp;title=Gcc"/>
	<link rel="alternate" type="text/html" href="https://bitpost.com/w/index.php?title=Gcc&amp;action=history"/>
	<updated>2026-05-29T18:33:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://bitpost.com/w/index.php?title=Gcc&amp;diff=5575&amp;oldid=prev</id>
		<title>M: Created page with &quot;==== g++ on Ubuntu 18.04 ====  This command will install a bunch of new packages including gcc, g++ and make.  The second package ensures you get man pages for dev tools.   su...&quot;</title>
		<link rel="alternate" type="text/html" href="https://bitpost.com/w/index.php?title=Gcc&amp;diff=5575&amp;oldid=prev"/>
		<updated>2019-07-05T16:52:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==== g++ on Ubuntu 18.04 ====  This command will install a bunch of new packages including gcc, g++ and make.  The second package ensures you get man pages for dev tools.   su...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== g++ on Ubuntu 18.04 ====&lt;br /&gt;
&lt;br /&gt;
This command will install a bunch of new packages including gcc, g++ and make.  The second package ensures you get man pages for dev tools.&lt;br /&gt;
&lt;br /&gt;
 sudo apt install build-essential  manpages-dev&lt;br /&gt;
&lt;br /&gt;
If you want additional versions of gcc installed, that you can manually switch between, like in gentoo, do this:&lt;br /&gt;
&lt;br /&gt;
 sudo apt install software-properties-common&lt;br /&gt;
 sudo add-apt-repository ppa:ubuntu-toolchain-r/test&lt;br /&gt;
 sudo apt install gcc-7 g++-7 gcc-8 g++-8 gcc-9 g++-9 # or just the versions you need&lt;br /&gt;
&lt;br /&gt;
The commands below will configure alternative for each version and associate a priority with it. The default version is the one with the highest priority, in our case that is gcc-9.&lt;br /&gt;
 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9&lt;br /&gt;
 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8&lt;br /&gt;
 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7&lt;br /&gt;
&lt;br /&gt;
To manually pick at any time:&lt;br /&gt;
 sudo update-alternatives --config gcc&lt;br /&gt;
 # and pick the number you want&lt;/div&gt;</summary>
		<author><name>M</name></author>
	</entry>
</feed>