Can't find how to select path to run a C program -


i using mac os x , have written c program using gcc compiler.
while running program on terminal being shown "no such file or directory found"
please me how select path?

run $./yourprogramfile command ./ in beginning important. means program resides in current directory.

example:

/path/to/your/cfile $ gcc myfile.c -o myfile /path/to/your/cfile $ ./myfile 

Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -