I am trying to learn different compilation tricks. Please consider following code snippet :
#include <header.h>
main()
{
execute me;
}
Now I am compiling this code using : -
gcc hello.c -I /home/example
what I am seeing during compilation of this file headers are being searched at /usr/include/ etc paths but I have placed header.h /home/example/header.h path so this is not able to find header file.
But if now I include header file in following manner then It is able to find header file.
#include "header.h"
So I am wondering if there is any way in which I will include header file using <> options and I also I able to give header path using command line (using -I or any option) ?
Please comment if something not clear.