Tuesday, November 22, 2011

Tip 24: How to compile C code ?

The command Called "gcc" and "cc" does this for you.

Just have simple C code in one file and save it as filename.c.

gcc -o myprogram myprogram.c

You will see newly file created as "myprogram"

Thats it !!

No comments:

Post a Comment