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
Either you make a final.c which will include all .c files then you can compile this final using gcc -c final.c command.
final.c
.c
gcc -c final.c
or
Another method is to use archive.Build all files to get respective .o then archive then in one library which will have all those .o file.
.o