Amrinder Brar Amrinder Brar - 5 months ago 60
Linux Question

GCC compiler errors with “No such file or directory”

My Ubuntu version is 14.04 LTS. I have a C program copied on the desktop by the name sendRawEth.c. When I write:

gcc sendRawEth.c -o sendRawEth

The compiler complains:

gcc: error: sendRawEth.c: No such file or directory
gcc: fatal error: no input files

I have no idea how to solve this error.

Answer Source

please do the following. On terminal check the present directory by 'pwd' command and then check the directory in which your programme is there and see if they are same or not. And while writing gcc yourfile it's case sensitive. Hope this helps

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download