Jump to content

regarding running c programms in linux using vs code

Souranil21 chakraborty

i just started learning c programming and i am getting this error everytime when i am trying to run this programme with gcc(i installed gcc compiler with the help of terminal ). Everytime this is giving me a error that in a.out directory where i am trying to run the programme the commands are not found.

Screenshot from 2021-09-24 12-09-28.png

Link to comment
Share on other sites

Link to post
Share on other sites

and also i am using ubuntu 20.04lts version as my operating system of choice.

1 minute ago, Souranil21 chakraborty said:

i just started learning c programming and i am getting this error everytime when i am trying to run this programme with gcc(i installed gcc compiler with the help of terminal ). Everytime this is giving me a error that in a.out directory where i am trying to run the programme the commands are not found.

Screenshot from 2021-09-24 12-09-28.png

 

Link to comment
Share on other sites

Link to post
Share on other sites

15 minutes ago, mahyar said:

you should use a forward slash after the dot

like this ./a.out

thank you very very much now that is working for me

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×