Command-line tool
gcc
brew/gcc
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
GNU compiler collection
At a glance
- Type
- Command-line tool
- Install on
- macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
macOS
brew install gcc
Linux
brew install gcc
Compile multiple source files into an executable
gfortran path/to/source1.f90 path/to/source2.f90 ... -o path/to/output_executable
Show common warnings, debug symbols in output, and optimize without affecting debugging
gfortran path/to/source.f90 -Wall -g -Og -o path/to/output_executable
Include libraries from a different path
gfortran path/to/source.f90 -o path/to/output_executable -Ipath/to/mod_and_include -Lpath/to/library -llibrary_name
Related command-line tools
- riscv64-elf-gcc
GNU compiler collection for riscv64-elf - aarch64-elf-gcc
GNU compiler collection for aarch64-elf - i686-elf-gcc
GNU compiler collection for i686-elf - m68k-elf-gcc
GNU compiler collection m68k-elf - arm-none-eabi-gcc
GNU compiler collection for arm-none-eabi - x86_64-elf-gcc
GNU compiler collection for x86_64-elf - closure-compiler
JavaScript optimizing compiler - compiler_base_error
compiler base error
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents