AptLynx

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

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents