[gtkmm] Re: how to compile GdkPixbuf



Vishal Modak wrote:
hi
Hi Vishal,


I'm trying to use GdkPixBuf to save a pixmap to a jpeg file... I included <gdk-pixbuf/gdk-pixbuf.h> (was it right?) and the compilation phase goes ok; but when it links the .o, it gives...

undefined reference to `gdk_pixbuf_new_from_file'
undefined reference to `gdk_pixbuf_render_pixmap_and_mask'
undefined reference to `gdk_pixbuf_unref'

How can I tell the linker to search them etc. etc?

And i am using gtkmm-1.2.10, gtk-1.2.10 , libsigc++-1.0

forget about gtk[mm] 1.2 !! 2.2 is the current version!
and use pkg-config --libs gtkmm-2.0 which takes care of everything.
   Christof





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