Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to run a c++ program in ubuntu terminal

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,660
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 13, 2010

This is a tutorial about how to run a program in your linux terminal this case being ubuntu10.04.
1. Install g++,gcc library
2. go to the directory of your program using cd
3. g++ -Wall -W -Werror nameoftheprogram.cpp -o nameoftheprogram
4. chmod +x nameoftheprogram.cpp
5. ./nameoftheprogram

Link to this comment:

Share to:

Uploader Comments (rkl26)

  • lol woops, Im sure 73 deg F is not -5 deg C. should do some debugging.

  • @RandonActs5 I know man all I wanted to do is to run the program in ubuntu terminal thats all, Results just go to google temperatur!!! LOL have a great summer

  • learn how to tab and you avoid all the copy paste

  • @Peterolen thanks for the tip

see all

All Comments (7)

Sign In or Sign Up now to post a comment!
  • The best parto of this video tutorial is the music .. hehehehe :)

  • Hey what's the song name? It was cool...and good tutorial too!

  • 4. chmod +x nameoftheprogram.cpp

    ????????? buhahahahahahahahahahahah

    expert :)

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more