What is g++?
g++ is made by GNU Project. Command-line C++ compiler driver that orchestrates preprocessing, compilation, assembly, and linking, with extensive options for language dialect selection, diagnostics, optimization, and control of the final link step including automatic linking of the C++ standard library.
What g++ does
Command-line C++ compiler driver that orchestrates preprocessing, compilation, assembly, and linking, with extensive options for language dialect selection, diagnostics, optimization, and control of the final link step including automatic linking of the C++ standard library.
- Recognizes common C++ source file suffixes (e.g., .cc, .cpp, .cxx, .c++) and compiles them as C++
- Automatically links the C++ standard library when performing a link step
- Runs the full build pipeline (preprocess, compile, assemble, link) with options to stop at intermediate stages (e.g., -E, -S, -c)
- Provides C++ dialect and language-mode controls (e.g., selecting C++ standard versions via driver options documented in GCC manuals)
- Supports passing options through to the system linker and controlling linking behavior (e.g., library/search path flags and -Wl/ -Xlinker pass-through)
- Supports selecting which linker to use via driver option (e.g., -fuse-ld=...)
Category: AI Code Assistants. g++ is open source and free to use.
What teams use it for
- Compiling and linking C++ applications from the command line or within build systems (Make, CMake, Bazel, etc.)
- Building object files and static/shared libraries for C++ projects
- Producing standardized diagnostics output for CI pipelines (e.g., machine-readable diagnostics formats where supported)
- Cross-compiling C++ code as part of GCC-based cross toolchains
What it overlaps with
These tools do similar work and turn up in the same large estates. Owning more than one is common, and it is often where the savings are.
Questions buyers ask
What does g++ do?
Command-line C++ compiler driver that orchestrates preprocessing, compilation, assembly, and linking, with extensive options for language dialect selection, diagnostics, optimization, and control of the final link step including automatic linking of the C++ standard library.
How common is g++ in large enterprises?
Samplify finds g++ in about 1 in 10 of the large enterprise software estates it has analysed.
Is g++ free?
g++ is open source and free to use.
What can replace g++?
Other tools in the same category include Copilot, SQL Prompt, G++ 4, Highlight.
Do we already own something that does what g++ does?
Often, yes. Large estates commonly hold several tools that overlap. Samplify compares every tool you own at feature level, across every category, and decides which one stays.
Paying twice for the same job?
Most large estates own several tools that do the same thing, often without anyone knowing. Samplify compares every tool you own at feature level and decides which one stays, with the evidence attached.
Where this comes from
Samplify's software catalogue and the large enterprise estates it has analysed, as at 2 Dec 2026. Features and use cases are Samplify's own reading of the product. Check anything important with GNU Project.