gcc -c ഓപ്ഷൻ ഫ്ലാഗ്

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 ഒബ്ജക്റ്റ് ഫയൽ സൃഷ്ടിച്ചു.

 


ഇതും കാണുക

Advertising

ജി.സി.സി
°• CmtoInchesConvert.com •°