How to compile and run C++ program using G++ on Ubuntu 18.04 LTS (Linux) / Ubuntu 20.04 LTS



In this video I am going to show How to Compile and Run C++ program Using G++ on Ubuntu 18.04 LTS Linux. Same instruction will be valid for Linux mint, Debian and other Debian based Linux systems.
==========================================
Confirm your installation by checking for G++ version by the command:
g++ –version
===========================================
Install build-essential by the command:
sudo apt install build-essential
===========================================
To compile the code within hello.cpp file, compile and execute it:
$ g++ -o hello hello.cpp
$ ./hello
Hello, World!
===========================================

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ http://bit.ly/2vsuMaS ⚫️ http://bit.ly/2GOaeQB
Java Programming Course ➡️ http://bit.ly/2GEfQMf ⚫️ http://bit.ly/2Vvjy4a
Bash Shell Scripting Course ➡️ http://bit.ly/2DBVF0C ⚫️ http://bit.ly/2UM06vF
Linux Command Line Tutorials ➡️ http://bit.ly/2IXuil0 ⚫️ http://bit.ly/2IXukt8
C Programming Course ➡️ http://bit.ly/2GQCiD1 ⚫️ http://bit.ly/2ZGN6ej
C++ Programming Course ➡️ http://bit.ly/2V4oEVJ ⚫️ http://bit.ly/2XMvqMs
PHP Programming Course ➡️ http://bit.ly/2XP71WH ⚫️ http://bit.ly/2vs3od6
Android Development Course ➡️ http://bit.ly/2UHih5H ⚫️ http://bit.ly/2IMhVci
C# Programming Course ➡️ http://bit.ly/2Vr7HEl ⚫️ http://bit.ly/2W6RXTU
JavaFx Programming Course ➡️ http://bit.ly/2XMvZWA ⚫️ http://bit.ly/2V2CoAi
NodeJs Programming Course ➡️ http://bit.ly/2GPg7gA ⚫️ http://bit.ly/2GQYTQ2
Jenkins Course For Developers and DevOps ➡️ http://bit.ly/2Wd4l4W ⚫️ http://bit.ly/2J1B1ug
Scala Programming Tutorial Course ➡️ http://bit.ly/2PysyA4 ⚫️ http://bit.ly/2PCaVj2
Bootstrap Responsive Web Design Tutorial ➡️ http://bit.ly/2DFQ2yC ⚫️ http://bit.ly/2VoJWwH
MongoDB Tutorial Course ➡️ http://bit.ly/2LaCJfP ⚫️ http://bit.ly/2WaI7Ap
QT C++ GUI Tutorial For Beginners ➡️ http://bit.ly/2vwqHSZ

★★★ Online Courses to learn ★★★
Data Science – http://bit.ly/2BB3PV8 | http://bit.ly/2IOrpni
Machine Learning – http://bit.ly/2J2xex1
Artificial Intelligence – http://bit.ly/2AeIHUR | http://bit.ly/2PCCBEb
Data Analytics with R Certification Training- http://bit.ly/2rSKHNP
DevOps Certification Training – http://bit.ly/2T5P6bQ
AWS Architect Certification Training – http://bit.ly/2PRHDeF
Java, J2EE & SOA Certification Training – http://bit.ly/2EKbwMK
AI & Deep Learning with TensorFlow – http://bit.ly/2AeIHUR
Big Data Hadoop Certification Training- http://bit.ly/2ReOl31
AWS Architect Certification Training – http://bit.ly/2EJhXjk
Selenium Certification Training – http://bit.ly/2BFrfZs
Tableau Training & Certification – http://bit.ly/2rODzSK
Linux Administration Certification Training-http://bit.ly/2Gy9GQH

★★★ Follow ★★★
My Website – http://www.codebind.com

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

How to run a C++ program on Ubuntu?
Compiling/Running C++ Programs?
Compile and Run simple C Program with G++ Compiler in Ubuntu

34 thoughts on “How to compile and run C++ program using G++ on Ubuntu 18.04 LTS (Linux) / Ubuntu 20.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *