Home Reverse colors Help
Single page Previous Contents Next

Development with GNU/Linux
18 / 30

Compiling and Linking in One Step

gcc hello.c

carries out both the compiling (preprocessing, compiling and assembling) and linking processes in a single step. The default name of the output file is a.out (an ELF file despite its name).

Use the -o option to create an output file with a different name:

gcc hello.c -o hello

Previous Contents Next
Contact