Usual way:
% gcc -c foo.c
% gcc -c bar.c
% gcc -o foobar foo.o bar.o
Alternative way:
% gcc -o foobar foo.c bar.c
Wow I didn’t know this… Still I don’t know all whether this depends on gcc version or not.
そんなことよりデバッグしようぜ!
Usual way:
% gcc -c foo.c
% gcc -c bar.c
% gcc -o foobar foo.o bar.o
Alternative way:
% gcc -o foobar foo.c bar.c
Wow I didn’t know this… Still I don’t know all whether this depends on gcc version or not.