๐ŸŒ
Ubuntu
documentation.ubuntu.com โ€บ ubuntu-for-developers โ€บ tutorials โ€บ gcc-use
Develop with GCC on Ubuntu - Ubuntu for Developers
April 29, 2026 - Build the source code using the gcc compiler, specifying hello as the file name of the resulting executable: dev@ubuntu:~/c-projects/hello-world$ gcc hello.c -o hello ยท This command incorporates the intermediate steps of preprocessing, compiling, and linking to generate an executable in one go.
๐ŸŒ
LinuxCapable
linuxcapable.com โ€บ home โ€บ ubuntu โ€บ how to install gcc on ubuntu 26.04, 24.04 and 22.04
How to Install GCC on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 30, 2026 - Ubuntu systems need GCC before ... GCC compiler on Ubuntu 26.04, 24.04, and 22.04 is the build-essential package, which adds GCC, G++, Make, headers, and packaging ......
Discussions

Installing gcc in a container

apt-get install gcc -y ?

More on reddit.com
๐ŸŒ r/docker
9
3
July 22, 2020
How can i see what version of C++ do i have?
C++ does have different standards but since it is a compiled language, you do not install a version of it, unlike in interpreted languages such as Python. The compiler you use though, in most cases gcc or clang, does have a version. You can find out about this in the shell with: gcc -v or clang -v each version of a compiler has a default standard of C++ it compiles. This default you will find out with a quick google search involving your compiler's name and its version. Also, you can change the C++ standard using a flag. For gcc this would be: g++ -std= make sure to consult the corresponding man pages as well. More on reddit.com
๐ŸŒ r/cpp_questions
14
11
November 6, 2019
Which c++ standard to adopt for new projects, c++11 to c++20?
Pick the latest standard supported by all of the compilers you care about. You might only care about your own computer's compiler or you may want to support many compilers from years past or something in between. Chances are all of the compilers you care about are new enough to support C++17 so I would not pick anything older than that. It's possible you can use C++20 since the latest releases of all major compilers have very good C++20 support. More on reddit.com
๐ŸŒ r/cpp
66
26
August 31, 2024
Set default compiler to gcc-13
However, I have to either turn off e-cores or use taskset -c to force the emerge to use only the p-cores (or I guess you could leave it on only e-cores) when compiling gcc. The resolve-march-native command and also gcc -march=native -Q --help-target both set -march=alderlake and -mcpu=alderlake ... More on reddit.com
๐ŸŒ r/Gentoo
4
9
July 7, 2024
๐ŸŒ
Ubuntu
documentation.ubuntu.com โ€บ ubuntu-for-developers โ€บ howto โ€บ gcc-setup
How to set up a development environment for GCC on Ubuntu - Ubuntu for Developers
2 weeks ago - de facto standard in Linux environments and is used to compile both the GNU toolchain and the Linux kernel. This guide shows how to install GCC and related tooling, including a build system and debuggers, on Ubuntu Desktop.
๐ŸŒ
Namehero
namehero.com โ€บ blog โ€บ how-to-install-gcc-on-ubuntu
How To Install GCC On Ubuntu
November 4, 2024 - Enter the following command and press Enter: ... Ubuntu will ask you to confirm the installation. Type โ€˜Yโ€™ and press Enter to proceed. This will install GCC from the Ubuntu repositories. Note if you need other build essentials you may want to install the meta package build-essential instead which contains GCC. ... To make sure GCC is installed correctly, you can check the compiler version by running the following command:
๐ŸŒ
Linuxize
linuxize.com โ€บ home โ€บ gcc โ€บ how to install gcc compiler on ubuntu 18.04
How to Install GCC Compiler on Ubuntu 18.04 | Linuxize
October 31, 2019 - Perform the steps below to install the GCC Compiler Ubuntu 18.04: ... The command installs a bunch of new packages including gcc, g++ and make.
๐ŸŒ
Ubuntu
manpages.ubuntu.com โ€บ manpages โ€บ trusty โ€บ man1 โ€บ gcc.1.html
Ubuntu Manpage: gcc - GNU project C and C++ compiler
-pipe Use pipes rather than temporary files for communication between the various stages of compilation. This fails to work on some systems where the assembler is unable to read from a pipe; but the GNU assembler has no trouble. --help Print (on the standard output) a description of the command-line options understood by gcc.
๐ŸŒ
DedicatedCore
dedicatedcore.com โ€บ home โ€บ how to install gcc compiler on ubuntu 22.04
How to Install GCC Compiler on Ubuntu 22.04 - DedicatedCore Blog
January 24, 2025 - On Ubuntu, installing the GCC Compiler is a simple procedure. Begin by opening the Terminal on your Ubuntu machine. Next, run a command to make sure your package lists are current.
๐ŸŒ
Linux Hint
linuxhint.com โ€บ installing_gcc_compiler_ubuntu
How to install GCC on Ubuntu 20.04 โ€“ Linux Hint
The steps for the installation of the GCC compiler on your Ubuntu 20.04 are as follows: System Package updating. Installation of the development package. Downloading of manual pages (optional). Verification of GCC. In this step, use the simple and fundamental sudo commands to update and upgrade your existing packages.
Find elsewhere
๐ŸŒ
PhoenixNAP
phoenixnap.com โ€บ home โ€บ kb โ€บ sysadmin โ€บ how to install gcc compiler on ubuntu
How to Install GCC Compiler on Ubuntu {3 Simple Methods}
February 20, 2025 - This guide will show you how to install GCC on Ubuntu and start compiling code on your system. ... Ubuntu installed. Access to a terminal window/command line.
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ how to install gcc the c compiler on ubuntu 18.04 bionic beaver linux
How to install GCC the C compiler on Ubuntu 18.04 Bionic Beaver Linux
September 22, 2025 - Another way to install gcc compiler is to install it as part of build-essential package. build-essential package will also install additional libraries as well as g++ compiler. In most cases or if unsure this is exactly what you need: ... $ gcc --version gcc (Ubuntu 7.2.0-18ubuntu2) 7.2.0 Copyright (C) 2017 Free Software Foundation, Inc.
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ how to install gcc the c compiler on ubuntu 22.04 lts jammy jellyfish linux
How to install GCC the C compiler on Ubuntu 22.04 LTS Jammy Jellyfish Linux
January 8, 2024 - Although you can install the C compiler separately by installation of the gcc package, the recommended way to install the C compiler on Ubuntu 22.04 Jammy Jellyfish is by installation of the entire development package build-essential. Open a command line terminal and install C compiler by installation of the development package build-essential:
๐ŸŒ
Cherry Servers
cherryservers.com โ€บ home โ€บ blog โ€บ linux โ€บ how to install gcc on ubuntu 22.04 [and compile a c program]
How to Install GCC on Ubuntu 22.04 [and Compile a C Program] | Cherry Servers
November 7, 2025 - You can then exit gdb by typing the exit command in the gdb shell. This tutorial covered what a compiler is and how GCC plays a big part in software development. We learned how to install GCC on Ubuntu 22.04, compile a C program, generate an assembly list, and debug information.
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ how to install gcc the c compiler on ubuntu 20.04 lts focal fossa linux
How to install GCC the C compiler on Ubuntu 20.04 LTS Focal Fossa Linux
September 21, 2025 - GCC, the GNU Compiler Collection ... is to install GCC the C compiler on Ubuntu 20.04 LTS focal fossa Linux. This will be achieved by using the apt install command....
๐ŸŒ
LinuxConfig
linuxconfig.org โ€บ home โ€บ how to install gcc and compile c/c++ programs on ubuntu 26.04
How to Install GCC and Compile C/C++ Programs on Ubuntu 26.04
April 1, 2026 - For further details on GCC features and options, consult the official GCC documentation. What is the difference between gcc and g++? The gcc command is the GNU C Compiler, primarily used for compiling C source code.
๐ŸŒ
Baeldung
baeldung.com โ€บ home โ€บ installation โ€บ how to install the latest version of gcc on ubuntu
How to Install the Latest Version of GCC on Ubuntu | Baeldung on Linux
November 17, 2024 - Before checking out the step-by-step process, letโ€™s note that the Ubuntu Universe repository contains GCC-14 (14.2.0, specifically), which is the latest version available. So, we start the process by enabling the Universe repository on the machine using the add-apt-repository command, as itโ€™s not enabled by default on Ubuntu:
๐ŸŒ
CyberITHub
cyberithub.com โ€บ how-to-install-gcc-c-compiler-on-ubuntu-20-04-lts
How to Install GCC(C and C++ Compiler) on Ubuntu 20.04 LTS | CyberITHub
January 21, 2023 - In this article, we will see the steps to install GCC on Ubuntu 20.04 LTS. GCC or GNU Compiler Collection is a free and open source set of mostly C and C++
๐ŸŒ
Learn Ubuntu
learnubuntu.com โ€บ install-gcc
How to Install GCC on Ubuntu
December 5, 2022 - gcc is required for compiling C and C++ code on Ubuntu. You can install it directly or with other dev tools with the build-essential package.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ unix_commands โ€บ gcc.htm
gcc Command in Linux
The above command will compile main.c that include the C code and generate an executable file at the current location named a.out by default. Make sure to replace main.c with your desired C source file. Once the compilation is done, you can run the default output file to get the result โˆ’ ... You can also specify the name of the output file by using the gcc command along with the -o option and the file name.
๐ŸŒ
iO Flood
ioflood.com โ€บ blog โ€บ install-gcc-command-linux
Installing and Using the GCC Command: Linux User Guide
January 2, 2024 - In most Linux distributions, the GCC command comes pre-installed. However, if itโ€™s not, you can install it in Debian based distributions like Ubuntu, by running the command sudo apt-get install gcc.