TOC
|
Prev
|
Next
Compiling, linking & running
$ gcc -Wall hello.c -o hello $ ./hello Hello, world!
gcc compiles
hello.c
into
a.out
or
hello.o
.
gcc calls the linker to make an executable program out of the object file
The
main
function has to be called
main
. Otherwise linking won't work.
TOC
|
Prev
|
Next