Getting two errors while compiling C code on a Linux virtual Machine

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.

Leave a Comment