I have some C source files and I am using gcc. I basically want to compile all of them and create one single object file. When I try:
gcc
gcc -c src
try using
gcc -o final file1.c file2.c file3.c
it works for me.