Playback starts YouTube’s embedded player (privacy-enhanced mode).
How to Compile and Run a C Program Using GCC on Ubuntu 18.04 LTS?
ChannelTechMeSpotDescription from the creator
How to Compile and Run a C Program Using gcc on Ubuntu 18.04 LTS?
Step 1: To check whether you have gcc installed or not on your ubuntu, Open 'Terminal.'
Step 2: Type the command below, and then hit enter.
gcc --version
If you get version info of gcc that means you gcc installed. if you get error like that 'command not found' or 'command not recognized' that means you don't have gcc installed.
Type the command below to install gcc, and then hit Enter:-
sudo apt install build-essential
follow the instructions on terminal, and install it.
Step 3: Now, go to the Directory where you have your C program file. After that type the command below to compile it, and hit enter.
gcc your_c_Program_filename -o filename_that_you_want_to_give
Step 4: To run it, type the command below, and then hit enter.
./filename_that_you_have_given
It's done.
Thanks for watching, please like and subscribe
==============================================
YouTube Subscribe: goo.gl/4lCCN8
Patreon: patreon.com/TechMeSpot
Facebook: facebook.com/techmespot
Twitter: twitter.com/techmespot
Website: techmespot.com
#howto #gcc #Ubuntu
Step 1: To check whether you have gcc installed or not on your ubuntu, Open 'Terminal.'
Step 2: Type the command below, and then hit enter.
gcc --version
If you get version info of gcc that means you gcc installed. if you get error like that 'command not found' or 'command not recognized' that means you don't have gcc installed.
Type the command below to install gcc, and then hit Enter:-
sudo apt install build-essential
follow the instructions on terminal, and install it.
Step 3: Now, go to the Directory where you have your C program file. After that type the command below to compile it, and hit enter.
gcc your_c_Program_filename -o filename_that_you_want_to_give
Step 4: To run it, type the command below, and then hit enter.
./filename_that_you_have_given
It's done.
Thanks for watching, please like and subscribe
==============================================
YouTube Subscribe: goo.gl/4lCCN8
Patreon: patreon.com/TechMeSpot
Facebook: facebook.com/techmespot
Twitter: twitter.com/techmespot
Website: techmespot.com
#howto #gcc #Ubuntu
About this tutorial
TechMeSpot published this 5:08 video tutorial on November 10, 2019. It has been watched 9,350 times on YouTube.
- Channel
- TechMeSpot
- Category
- Howto & Style
- Duration
- 5:08
- Published
- November 10, 2019
- Views
- 9,350
- Likes
- 105
Tags
Share
This tutorial in other languages
- FRComment compiler et exécuter un programme C en utilisant GCC sur Ubuntu 18.04 LTS?
- ESCómo compilar y ejecutar un programa de uso de GCC C en Ubuntu 18.04 LTS?
- PTComo compilar e executar um programa C Usando GCC no Ubuntu 18.04 LTS?
- ITCome compilare ed eseguire un programma utilizzando C GCC su Ubuntu 18.04 LTS?
- DEWie zum Kompilieren und Ausführen eines C-Programm verwendet GCC auf Ubuntu 18.04 LTS?
- NLHoe te compileren en uitvoeren van een C-programma Met behulp van GCC op Ubuntu 18.04 LTS?
- RUКак скомпилировать и запустить C программы с помощью GCC на Ubuntu 18.04 LTS?
- PLJak skompilować i uruchomić program za pomocą GCC C na Ubuntu 18.04 LTS?
- JAどのようにコンパイルして実行CプログラムへのUbuntu 18.04 LTSにGCCを使用していますか?
- ARكيفية تجميع وتشغيل وC البرنامج عن طريق دول مجلس التعاون الخليجي على أوبونتو 18.04 LTS؟
- HIकैसे संकलित और भागो उबंटू 18.04 LTS पर एक सी प्रोग्राम का उपयोग करना जीसीसी के लिए?
- IDCara Kompilasi dan Jalankan Program C Menggunakan GCC pada Ubuntu 18.04 LTS?