gcc -c optievlag

gcc -c compileert bronbestanden zonder te linken.

Syntaxis

$ gcc -c [options] [source files]

Voorbeeld

Schrijf bronbestand myfile.c :

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

 

Compileer mijnbestand.c :

$ gcc -c myfile.c

Deze compilatie genereerde het objectbestand myfile.o .

 


Zie ook

Advertising

GCC
°• CmtoInchesConvert.com •°