u will first have to open the VI editor and write the code in it.
make sure u dont use ne of the header file pertainig to graphics in it (sometimes it doesnt work) save the code with xtension .c
then u must compile using gcc
the code is "gcc -c main.c"(where main is name of ur file dont use quotes)
is its a c++ program the use
"g++ -c main.cpp"