You are running the gcc
command from the home directory (~
) when the hello.c
file is in ~/Documents
.
Either navigate to Documents
using cd
before running gcc
or place hello.c
in the home directory.
7
solved Getting two errors while compiling C code on a Linux virtual Machine