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

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

ProgrammingKnowledge2

6 лет назад

237,859 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

ThorneDev
ThorneDev - 27.09.2023 14:17

thank you for the concise explanation

Ответить
hajer Alhenaid
hajer Alhenaid - 20.12.2022 21:07

Thanks

Ответить
Uday Shinde
Uday Shinde - 15.11.2022 09:36

Fake h

Ответить
pseudonym
pseudonym - 15.10.2022 10:35

thanks a lot

Ответить
Ronnel Macompas
Ronnel Macompas - 23.09.2022 11:34

Thank you it works on my Linux Mint 20

Ответить
Zafar Xayrullayev
Zafar Xayrullayev - 13.09.2022 19:23

thank you

Ответить
Ahmet Çitak
Ahmet Çitak - 22.08.2022 16:07

the most clear video

Ответить
Advertiser beast
Advertiser beast - 26.06.2022 22:53

great video to learn about file in g++.

Ответить
Naveen Pala
Naveen Pala - 14.06.2022 07:50

Thank you

Ответить
ROCKSTAR MANOHAR
ROCKSTAR MANOHAR - 08.05.2022 09:07

usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status

I AM GETTING LIKE THIS WHAT I HAVE TO DO

Ответить
Ahmet Karakartal
Ahmet Karakartal - 23.04.2022 17:26

thank you so much

Ответить
charles klein
charles klein - 30.03.2022 04:25

PLEASE NOTE! their are "TWO" [ProgrammingKnowledge] AND! - ProgrammingKnowledge2 - i lost my mind when i entered ProgrammingKnowledge2 and found all of his videos gone! and then i realized it was #2. the good videos are on #1. CHECK-OUT THE ORIGINAL! videos. THIS SHOULD BE ON ALL YOUR NEW VIDEOS!

Ответить
HanotzTv
HanotzTv - 26.02.2022 12:00

!

Ответить
Mcdonalds Sprite
Mcdonalds Sprite - 25.02.2022 03:30

life saver, thanks a lot

Ответить
Pages Perfected
Pages Perfected - 10.12.2021 01:18

ty

Ответить
Aashutosh singh
Aashutosh singh - 24.11.2021 09:19

Thanks a lot 🎉

Ответить
luky420lmao
luky420lmao - 20.11.2021 20:09

thanks for your help man, nice vid

Ответить
HABIB ben jazia
HABIB ben jazia - 21.10.2021 22:04

Thank you!

Ответить
Ziyad
Ziyad - 06.10.2021 22:05

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

Ответить
I do everything
I do everything - 25.09.2021 08:29

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

Ответить
Jishnu Goswami
Jishnu Goswami - 14.09.2021 10:16

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

Ответить
Plusutralinstinctmiliano
Plusutralinstinctmiliano - 01.09.2021 22:43

I certify those commands works for Archlinux (Manjaro).
-ahem
As long as you follow the video instructions and there IS no problem during g++ instalation which is my case :D

Ответить
Plusutralinstinctmiliano
Plusutralinstinctmiliano - 01.09.2021 22:39

GOLD

Ответить
NK
NK - 20.08.2021 20:36

Who else is crying because of Cmake 😂😂

Ответить
Aradhy Mishra
Aradhy Mishra - 05.08.2021 18:18

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

Ответить
Jin Yao
Jin Yao - 05.08.2021 15:36

Hi, how to compile using GCC not G++ in eclipse IDE?

Ответить
Noob
Noob - 30.07.2021 09:30

Thanks, brother.

Ответить
Mani Kazemi
Mani Kazemi - 22.07.2021 10:02

God bless you.

Ответить
eSILO
eSILO - 06.07.2021 14:22

thank you so much!!!! so simple

Ответить
Wild West Gunslinger
Wild West Gunslinger - 03.07.2021 14:32

It worked thanks

Ответить
Anirudh B Mitta
Anirudh B Mitta - 23.06.2021 05:51

This helped me a lot

Ответить
andzani mukwevho
andzani mukwevho - 21.06.2021 18:25

thanks

Ответить
Julian B
Julian B - 20.06.2021 18:55

Excellent! Thank you

Ответить
David Reynolds
David Reynolds - 13.05.2021 09:35

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

Ответить
Indian
Indian - 15.04.2021 12:52

U make it so simple 🔥🔥🔥

Ответить
USS Forbes
USS Forbes - 24.02.2021 10:13

Thank you. Visual studio was trying to kill me.

Ответить
Bruno Boreli Fernandes
Bruno Boreli Fernandes - 09.02.2021 01:29

thank you!!

Ответить
Rolando Morales
Rolando Morales - 27.01.2021 03:49

Thank you so much for the help!!!!!

Ответить
Shantanu Singh
Shantanu Singh - 08.01.2021 18:16

how to give input for the code ?

Ответить
Nikolaj Agger Vindum
Nikolaj Agger Vindum - 08.01.2021 03:40

What if i have two .cpp files in the same folder, how do i open the second .cpp file?, plZ help!!

Ответить
C Y
C Y - 19.12.2020 23:18

Man there should be more tutorials like this.

Ответить
castiel INFP
castiel INFP - 30.11.2020 14:11

Thank you so much.💛

Ответить
adnan ahmad
adnan ahmad - 31.10.2020 17:48

thanks man!!

Ответить
motive es
motive es - 23.10.2020 06:08

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

Ответить
motive es
motive es - 22.10.2020 12:56

this is pure Manuel i like it

Ответить
PythonForFree
PythonForFree - 10.10.2020 00:04

thank you very much sir

Ответить
Rifat R Raazz
Rifat R Raazz - 21.09.2020 09:16

What if I rename the cpp file as "Hello World.cpp"? (put a space in name)

Ответить
Андрей Чиновников
Андрей Чиновников - 20.09.2020 16:40

Жаль в русском комунити никто не додумался снять такой видос.

Ответить
Onkar Ratnaparkhi
Onkar Ratnaparkhi - 15.09.2020 10:08

gcc is not in built in 20.04 LTS, it was there in 18.04. I had to reinstall it when i upgraded to 20.04

Ответить