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

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 88

  • @blaked2352
    @blaked2352 4 роки тому +8

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

  • @leohero2270
    @leohero2270 4 роки тому +20

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

  • @jannatulnaeemkanak7007
    @jannatulnaeemkanak7007 2 роки тому

    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.

  • @davidreynolds9649
    @davidreynolds9649 3 роки тому

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

  • @24incorporatedknee68
    @24incorporatedknee68 3 роки тому +5

    Man there should be more tutorials like this.

  • @ravebear1184
    @ravebear1184 5 років тому +6

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

  • @motivees3934
    @motivees3934 3 роки тому

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

  • @advertiserbeast7033
    @advertiserbeast7033 2 роки тому

    great video to learn about file in g++.

  • @SihabUddin_sihabuddinmh
    @SihabUddin_sihabuddinmh 4 роки тому +4

    You saved me bro.

  • @lordofdawn6871
    @lordofdawn6871 3 роки тому +1

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

  • @shurima1137
    @shurima1137 5 років тому +3

    Thank u so much, what i was looking for

  • @carloscao9193
    @carloscao9193 4 роки тому +6

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

  • @kartikeyjangir6003
    @kartikeyjangir6003 3 роки тому

    U make it so simple 🔥🔥🔥

  • @ahmetcitak5163
    @ahmetcitak5163 2 роки тому

    the most clear video

  • @ronnelmacompas1647
    @ronnelmacompas1647 2 роки тому

    Thank you it works on my Linux Mint 20

  • @nycbklynrmp
    @nycbklynrmp 5 років тому +3

    you can do in one command line if using komod edit: g++ -o output %f ; %D/output

  • @aradhymishra6786
    @aradhymishra6786 3 роки тому

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

  • @luky420lmao8
    @luky420lmao8 2 роки тому

    thanks for your help man, nice vid

  • @babajikathullu311
    @babajikathullu311 5 років тому +1

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

  • @castielinfp194
    @castielinfp194 3 роки тому +1

    Thank you so much.💛

  • @dinanadjari
    @dinanadjari 5 років тому +1

    Thanks it was great!👍👌

  • @ziyad7780
    @ziyad7780 2 роки тому +1

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

  • @julianb7978
    @julianb7978 3 роки тому

    Excellent! Thank you

  • @pythonforfree7297
    @pythonforfree7297 4 роки тому

    thank you very much sir

  • @GentlemanJex
    @GentlemanJex 4 роки тому +3

    Thank you so much! You saved my homework!

  • @rolandomorales3116
    @rolandomorales3116 3 роки тому

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

  • @jayaggie2015
    @jayaggie2015 5 років тому

    Great Tutorial

  • @adnanahmad4386
    @adnanahmad4386 3 роки тому +2

    thanks man!!

  • @thornedev1507
    @thornedev1507 11 місяців тому

    thank you for the concise explanation

  • @Pages_Perfected
    @Pages_Perfected 2 роки тому

    ty

  • @SILX
    @SILX 3 роки тому

    thank you so much!!!! so simple

  • @motivees3934
    @motivees3934 3 роки тому

    this is pure Manuel i like it

  • @BhagyaRana
    @BhagyaRana 4 роки тому

    Thanks for this Video!

  • @manikazemi5556
    @manikazemi5556 3 роки тому

    God bless you.

  • @naveenpala3416
    @naveenpala3416 2 роки тому

    Thank you

  • @ahmetkarakartal9563
    @ahmetkarakartal9563 2 роки тому

    thank you so much

  • @chetansoni8620
    @chetansoni8620 4 роки тому

    Great

  • @nikolajaggervindum6308
    @nikolajaggervindum6308 3 роки тому +1

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

  • @Noob-oc1wp
    @Noob-oc1wp 3 роки тому

    Thanks, brother.

  • @hajeralhenaid5159
    @hajeralhenaid5159 Рік тому

    Thanks

  • @anirudhbmitta6597
    @anirudhbmitta6597 3 роки тому

    This helped me a lot

  • @antoine1407
    @antoine1407 Рік тому

    thanks a lot

  • @mpi1191
    @mpi1191 4 роки тому

    Same thing works if you save source code at .c extension (hello.c).

  • @habibbenjazia7278
    @habibbenjazia7278 2 роки тому

    Thank you!

  • @tosh6611
    @tosh6611 2 роки тому

    Thanks a lot 🎉

  • @wildwestgunslinger6995
    @wildwestgunslinger6995 3 роки тому

    It worked thanks

  • @McDonaldsSprite247
    @McDonaldsSprite247 2 роки тому

    life saver, thanks a lot

  • @Avalanchanime
    @Avalanchanime 3 роки тому

    GOLD

  • @andzanimukwevho3898
    @andzanimukwevho3898 3 роки тому

    thanks

  • @kyranxp6025
    @kyranxp6025 5 років тому

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

  • @drallisimo34
    @drallisimo34 4 роки тому

    cool tut!!!

  • @onkarratnaparkhi8065
    @onkarratnaparkhi8065 4 роки тому

    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

  • @rifatrraazz5411
    @rifatrraazz5411 4 роки тому +1

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

  • @FORESTER2011
    @FORESTER2011 3 роки тому

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

  • @brunoborelifernandes1727
    @brunoborelifernandes1727 3 роки тому

    thank you!!

  • @elguappo8188
    @elguappo8188 5 років тому +1

    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

  • @asadaliuetwala1497
    @asadaliuetwala1497 5 років тому

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

  • @jishnugoswami3403
    @jishnugoswami3403 3 роки тому

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

  • @shantanusingh6699
    @shantanusingh6699 3 роки тому

    how to give input for the code ?

  • @amitbhuria943
    @amitbhuria943 4 роки тому

    Sir how to clear screen in g++ compiler

  • @MasterStroke.
    @MasterStroke. 5 років тому

    I just installed the ubuntu 18.04 operating system and I didn't know that g++ comes with it.

  • @renardi_adryan
    @renardi_adryan 6 років тому

    after the file compiled succesfuly!,Why output file not become exe file with a logo just like in ubuntu 16 lts???

    • @0xhhhhff
      @0xhhhhff 6 років тому

      cuz its a linker. something that turns obj into exe

    • @renardi_adryan
      @renardi_adryan 6 років тому

      Ok. But ,How i can fix the problem?.
      Cuz i was search the solution but i not get it.

  • @mikemendez3778
    @mikemendez3778 5 років тому

    i tryed using the command to download the build essential but when it asks for my password it wont let me input the password, do you have any idea how to fix this?

    • @mikemendez3778
      @mikemendez3778 5 років тому

      also got this E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
      E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    • @ilijapopivanov3928
      @ilijapopivanov3928 5 років тому +1

      You are actually writing a password but you can't see it. Just type it and press enter

  • @marekurbanczyk2848
    @marekurbanczyk2848 4 роки тому

    Very nice video. Thank you very much.
    Very easy for use.

  • @imme2763
    @imme2763 4 роки тому

    thank you sir

  • @mahavirsingh3432
    @mahavirsingh3432 5 років тому

    G++ command not found it came when I wrote g++ --version but when I wrote second command it showed 0 upgrade......... And so on

  • @mulugetalinger3734
    @mulugetalinger3734 5 років тому

    how to install Linux mint ?

    • @mpi1191
      @mpi1191 4 роки тому

      You search online...

  • @NK_Kolkata
    @NK_Kolkata 3 роки тому

    Who else is crying because of Cmake 😂😂

  • @АндрейЧиновников-ж2х

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

  • @domendrasingh2383
    @domendrasingh2383 5 років тому

    What is sudo password

    • @fatim3510
      @fatim3510 5 років тому

      its your password for linux

    • @andreassoteriou5602
      @andreassoteriou5602 5 років тому

      you can write your administrator password but it doesn't show up . Yo
      u just write it

  • @dolevdo
    @dolevdo 2 роки тому

    !

  • @uday_shinde01
    @uday_shinde01 Рік тому +1

    Fake h

  • @charlesklein7232
    @charlesklein7232 2 роки тому

    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!

  • @rockstarmanohar7819
    @rockstarmanohar7819 2 роки тому

    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

  • @xayrullayevzafar
    @xayrullayevzafar 2 роки тому

    thank you

  • @k.a.s.i.m.
    @k.a.s.i.m. 4 роки тому

    Thank you