Monthly Archives: September 2010


$ gcc -o firstprogram firstprogram.c

If your file is named firstprogram.c then type ‘-o firstprogram’ as the parameter to gcc. This is basically your suggested name for the executable file that gcc would create. In case you typed something like the following

$ gcc firstprogram.c

You would be having a a.out in the same directory as the source C file. This is the default name of the executable that gcc creates. This would create problems when you compile many programs in one directory. So you override this with the -o option followed by the name of the executable

$ gcc -o hello secondprogram.c

Would create an executable by the name hello for your source code named secondprogram.c

Running the executable that you created is as simple as typing the following at the prompt.

$ ./firstprogram
$ ./hello

Tutorial: SVN for 1st year students (reference)

Subversion is a tool that helps programmers to work together without having the necessary of being in the same room. It keeps track of records of the previous modification and allow programmers to view their code with given time frame. Subversion allows users to add, delete and modify their idea without the whim of losing their “working” program. It gives programmers split up their workload and manage their code multiple parts. Continue reading