indicador d'opció gcc -c

gcc -c compila els fitxers font sense enllaçar.

Sintaxi

$ gcc -c [options] [source files]

Exemple

Escriu el fitxer font myfile.c :

// myfile.c
#include <stdio.h>
 
void main()
{
    printf("Program run\n");
}

 

Compile myfile.c :

$ gcc -c myfile.c

Aquesta compilació ha generat el fitxer objecte myfile.o .

 


Vegeu també

Advertising

GCC
°• CmtoInchesConvert.com •°