Find the answer to your Linux question:
Results 1 to 2 of 2
Hi , can anybody let me know whats wrong with path , I do have installed glib and dbus and can find them manually , /usr/include/glib-2.0/glib.h , but while comipling ...
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    10

    error: glib.h: No such file or directory

    Hi ,
    can anybody let me know whats wrong with path , I do have installed glib and dbus and can find them manually , /usr/include/glib-2.0/glib.h , but while comipling applicaiton it gives following error messages.

    /usr/include/libosso.h:32:18: error: glib.h: No such file or directory
    /usr/include/libosso.h:38:23: error: dbus/dbus.h: No such file or directory
    /usr/include/libosso.h:39:32: error: dbus/dbus-protocol.h: No such file or directory


    I'd be grateful.

    Regards,

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Location
    Norway
    Posts
    52
    Could be an error with the path. Try passing the path to gcc along these lines

    Code:
    gcc -I /usr/include/glib-2.0/ -o your_app your.app.c
    If it doesn't work, could you post a snippet of the code that doesn't work along with gcc version and distro etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...