How Do I Run a Gcc Compiler in 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 invoke a GNU compiler?
The usual way to run GCC is to run the executable called gcc , or machine -gcc when cross-compiling, or machine -gcc- version to run a specific version of GCC. When you compile C++ programs, you should invoke GCC as g++ instead.