How to fix this error

gcc -o oneshot.c oneshot
/usr/bin/ld: cannot find oneshot: file format not recognized
collect2: error: ld returned 1 exit status