Hello World Programs
lets programming in linux platform..
the things that you’ll need are :
1. Editor : gedit, nano, vi, vim –> I recomended vim as your editor
2. Compiler : gcc, g++ –> we will using gcc, g++ is use for c++
3. Makefile : this the script configuration for compiling programs
4. the C files : the file that would be compiled.
write this code and save as helloworld.c
and now write this code and save as Makefile
# Makefile for Hello World
CC = gcc
PROGNAME = helloworld
FILE = helloworld.c
$(CC) -o $(PROGNAME) $(FILE)
rm -fr helloworld *.c~
now you have both Makefile and the C file, lets compile the file
just type :
and then you will have helloworld executable file.
and type this to run it
for any question, please don’t mind to mail me..