I tried to compile .c file to .o and it is located in specific directory. The similar question is here but this is not what I'm looking for.
For some reason, I don't want to use -o
option now. I'm using -c
option. The default output path of gcc -c
is current directory. I tried to redirect it into some specific directory such as /objs
. How can I achieve it?