Re: Problem with Includes (libgsf)



On Sat, Sep 13, 2003 at 13:25:02 -0700, Andrea M. wrote:
When I include a header ie. gsf.h, it gives me errors that it can't find
glib.h  What can I do to make sure all the libraries link up properly ?

libgsf provides that information in a pkg-config
(http://www.freedesktop.org/software/pkgconfig/) ".pc" file.

For compiling, you need to pass the flags given by
        pkg-config --cflags libgsf-gnome-1
e.g.
        -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
and for linking the flags given by
        pkg-config --libs libgsf-gnome-1
e.g.
        -lgsf-gnome-1 -lgsf-1 -lgobject-2.0 -lxml2 -lpthread -lz -lm -lglib-2.0  

HTH,
Ray
-- 
Cyberspace, a final frontier. These are the voyages of my messages,
on a lightspeed mission to explore strange new systems and to boldly go
where no data has gone before.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]