gcc -c লিঙ্ক না করেই সোর্স ফাইল কম্পাইল করে।
$ gcc -c [options] [source files]
সোর্স ফাইল myfile.c লিখুন :
// myfile.c
#include <stdio.h>
void main()
{
printf("Program run\n");
}
কম্পাইল myfile.c :
$ gcc -c myfile.c
এই সংকলনটি myfile.o অবজেক্ট ফাইল তৈরি করেছে।