I've seen a lot of programs recently and got them downloaded, but I don't know how to run them. I saved them as .c files because apparently that's what they're supposed to be, but how do I run them?
I'm talking about gfind, actually: https://www.ics.uci.edu/~eppstein/ca/gfind.c
and I'm using a Mac.
How to run .c files?
Re: How to run .c files?
These are programs written in the C language. You convert them into a runnable program by running a "C compiler". I don't know Mac OS, but Google should help you install a free compiler such as gcc.
Re: How to run .c files?
To compile gfind.c on a Mac, start up Terminal.app, cd to the location of that .c file, then run this command:
cc -o gfind -m32 gfind.c
Leave out the "-m32" if you want a 64-bit version. Type "./gfind c" to see help on all the options.
cc -o gfind -m32 gfind.c
Leave out the "-m32" if you want a 64-bit version. Type "./gfind c" to see help on all the options.
Re: How to run .c files?
Thank you both!