gcc -I मध्ये शीर्षलेख फाईल्सची निर्देशिका समाविष्ट आहे.
$ gcc -Idir [options] [source files] [object files] [-o output file]
proj/src/myheader.h:
// myheader.h
	#define NUM1 5
myfile.c:
// myfile.c
	#include <stdio.h/
	#include "myheader.h"
	 
	void main()
	{
	    int num = NUM1;
	    printf("num=%d\n", num);
	}
	
डिरेक्टरी प्रोजेक्ट / एसआरसी शिवाय समाविष्ट करा मायफाइल सी .
$ gcc myfile.c -o myfile
	myfile.c:2:22: fatal error: myheader.h: No such file or directory
	compilation terminated.
	$
डायरेक्टरी प्रोजेक्ट / एसआरसी सह मायफाइल सी बिल्ड करा :
$ gcc -Iproj/src myfile.c -o myfile
	$ ./myfile
	num=5
	$
Advertising