[QUOTE=Wim Sturkenboom;3138321]For the compiling part:
Code:
gcc -Wall myfile.c -o myprogram
Note that to link libraries, you'll need to use the "-l" flag (that's a lowercase L). You may also need to tell gcc where to find the headers and library files, using "-I" and "-L", respectively. This is only if those files are not in "standard" places.