How to compile and run C++ program using G++ on Ubuntu (Linux)

preview_player
Показать описание
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
===========================================
$ ./hello
Hello, World!
===========================================

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

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
Рекомендации по теме
Комментарии
Автор

Watched 8 other videos that didn't help at all before finding this, thanks so much

blaked
Автор

This is an old video, but thank you so much for this! Everything you said worked perfectly as described.

leohero
Автор

Just spent hours fighting with cmake !!!! This was all I needed!

davidreynolds
Автор

Thank u so much, what i was looking for

shurima
Автор

Video done very well, clear and very precise. great!

ravebear
Автор

Thanks a Lot...!!
It worked for me..!!

babajikathullu
Автор

Oh!Thank you, it is work.Thank you for this video.

lordofdawn
Автор

i loved this tutorial so simple we don't even need any ide

motivees
Автор

Thankx a lot.My next lav exam 23 Janu.So it's very helpful for me.Thank you very much from the core of my heart.Best of luck for your future.May ALLAH bless you .Thankx a lot again.

jannatulnaeemkanak
Автор

Thank you it works on my Linux Mint 20

ronnelmacompas
Автор

Thank you so much! You saved my homework!

GentlemanJex
Автор

the converted file...will open in which format?

asadaliuetwala
Автор

Just what I need as a novice, thanks a lot .

carloscao
Автор

Man there should be more tutorials like this.

incorporatedknee
Автор

Thanks a lot bhaiya, it really works.. ❤❤❤

aradhymishra
Автор

great video to learn about file in g++.

advertiserbeast
Автор

Thx alot now I can start programing c++ in linux

kyranxp
Автор

Great video...this is the thing I was searching for

jishnugoswami
Автор

Hello Sir, I have a question. Can I use the same commands to select a different storage on my Linux pc. For example, I want to install kodi on my storage drive. Not on my main drive, Thanks

elguappo
Автор

i got "E: Unable to correct problems, you have held broken packages." how to fix it??

ziyad