gcc -c optie vlag

gcc -c compileert bronbestanden zonder te linken.

Syntaxis

$ gcc -c [options] [source files]

Voorbeeld

Schrijf het bronbestand myfile.c :

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

 

Compileer myfile.c :

$ gcc -c myfile.c

Deze compilatie heeft het objectbestand myfile.o gegenereerd .

 


Zie ook

Advertising

GCC
SNELLE TABELLEN