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

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -