Search code examples
clinuxgstreamer

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


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?


Solution

  • The path searched depends on the implementation (and current configuration). The correct way to find the include path is to use pkg-config

    pkg-config --cflags gstreamer