HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

c99 — Compile C programs according to the ISO C standard. More information: <https://manned.org/c99>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
accordingtheprogramscommandcompilec99cliiso

Problem

How to use the c99 command: Compile C programs according to the ISO C standard. More information: <https://manned.org/c99>.

Solution

c99 — Compile C programs according to the ISO C standard. More information: <https://manned.org/c99>.

Compile source file(s) and create an executable:
c99 {{file.c}}


Compile source file(s) and specify the executable [o]utput filename:
c99 -o {{executable_name}} {{file.c}}


Compile source file(s) and create object file(s):
c99 -c {{file.c}}


Compile source file(s), link with object file(s), and create an executable:
c99 {{file.c}} {{file.o}}

Code Snippets

Compile source file(s) and create an executable

c99 {{file.c}}

Compile source file(s) and specify the executable [o]utput filename

c99 -o {{executable_name}} {{file.c}}

Compile source file(s) and create object file(s)

c99 -c {{file.c}}

Compile source file(s), link with object file(s), and create an executable

c99 {{file.c}} {{file.o}}

Context

tldr-pages: common/c99

Revisions (0)

No revisions yet.