command line - Vm virtualbox ubuntu, cant run .c file from terminal -


i have file example_action.c in example folder.

in terminal enter

cd example

ls

and shows example_action.c example.file

i trying run example_action.c on example.file , output result.

./example_action example.file result.file

but every variation try gives different error.

bash:example_action not found

command not recognised

and on.

do need install make work?

thanks help.

to run c program file, first compile using gcc. u should have gcc installed in virtual machine. compile typing "gcc filename.c" in terminal opened in folder. generate "a.out" file. run c file typing "./a.out". , should add file extension ".c" file name every time.

bash:example_action not found 

this error because filename example_action.c


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -