I am trying to execute a C program via gcc compiler on ubuntu 18.04
In a folder named 'gsl', I have extracted the gsl.tar file. This is also the folder where I save all my ' '.c programs written in gedit.
When to trying to execute the following via terminal,
gcc -Wall -I/Home/gsl/include -c sample.c
followed by
./a.out
I receive the following error : bash: ./a.out: No such file or directory
I quickly realized this is due to permanent deletion of a file (on my behalf) named a.out from the gsl folder.
To confirm, upon execution of the following commands :
ls -al a.out
chmod +x a.out
I get the same output :
ls: cannot access 'a.out': No such file or directory
chmod: cannot access 'a.out': No such file or directory
What action/step next will suffice to solve this issue?
How can I retrieve the a.out file (permanently deleted on my behalf)?
Thank you
Edit 1 : Removed the link for a question posted on Raspberry Pi community which I found similar to this query but is not, Thanks to @Oscar for pointing it out