Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is default path for header file included in c program?

Tags:

c

linux

gstreamer

see if i write in any c file like

#include "header.h"

then it will search this file in current directory

but when i write

#include <header.h>

then where it will go to find this file ? what is defualt path for header file included in c program?

see i have installed gstreamer in /usr/local but when i am including

#include <gst/gst.h>

i am geeting fatal error: gst/gst.h: No such file or directory

How can i remove this error?

like image 508
Jeegar Patel Avatar asked Oct 20 '11 09:10

Jeegar Patel


1 Answers

Try running gcc -v -E -. When I do, part of the output is as follows:

#include <...> search starts here:
 /usr/lib/gcc/i686-linux-gnu/4.6.1/include
 /usr/local/include
 /usr/lib/gcc/i686-linux-gnu/4.6.1/include-fixed
 /usr/include/i386-linux-gnu
 /usr/include

It's not an answer to the gstreamer question, but I hope this still helps!

Pulled from here

like image 100
Nate Avatar answered Sep 24 '22 20:09

Nate