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
Post a Comment