1.3. Setting up to develop applications using C and C++
To develop applications using C and C++, install the necessary development tools and compilers provided by Red Hat Enterprise Linux. This procedure describes how to install the standard development tools, including the GNU Compiler Collection (GCC), GNU Debugger (GDB), and the LLVM toolset.
Prerequisites
- The debug and source repositories must be enabled.
Procedure
Install the Development Tools package group including GNU Compiler Collection (GCC), GNU Debugger (GDB), and other development tools:
# dnf group install "Development Tools"Install the LLVM-based toolchain including the
clangcompiler and thelldlinker:# dnf install llvm-toolsetOptional: For Fortran dependencies, install the GNU Fortran compiler:
# dnf install gcc-gfortran