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

ಜಿಸಿಸಿ
ರಾಪಿಡ್ ಟೇಬಲ್‌ಗಳು