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

GCC
°• CmtoInchesConvert.com •°