How Do I Get Gcc on Linux?
Contents How Do I Run Gcc on Linux? Follow These Steps to Run Programs on Terminal: Open Terminal. Type Command to Install Gcc or G++ Complier: Now Go to That...
Contents
How do I run gcc on Linux?
Follow these steps to run programs on terminal:
- Open terminal.
- Type command to install gcc or g++ complier:
- Now go to that folder where you will create C/C++ programs. …
- Open a file using any editor.
- Add this code in the file: …
- Save the file and exit.
- Compile the program using any of the following command:
20 июн. 2014 г.
Must Read
How do I download and install GCC compiler in Linux?
Installing GCC on Ubuntu
- Start by updating the packages list: sudo apt update.
- Install the build-essential package by typing: sudo apt install build-essential. …
- To validate that the GCC compiler is successfully installed, use the gcc –version command which prints the GCC version: gcc –version.
31 окт. 2019 г.