I have a website script that requires me to compile a source file for use as a cron later on. uhm. I'm a bit clueless how to compile this source. its extension is .c. so i figured it was just needing a c compiler. but I haven't had any luck. what do I do?
scott@blackdiamond ~ $ echo "int main() {}" > file.c
scott@blackdiamond ~ $ gcc file.c
scott@blackdiamond ~ $ ls
a.out file.c
scott@blackdiamond ~ $ ./a.out
scott@blackdiamond ~ $
alright i will try that, but where should file.c reside in relation to my cygwin folder?
...
Use a cd command to change directory to it's absolute path.