|
我编译GTK example中的helloword显示:
gcc helloworld.c -o helloworld -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags --libs`
/lib/libgtk-x11-2.0.so: undefined reference to `cairo_surface_set_fallback_resolution'
/lib/libgtk-x11-2.0.so: undefined reference to `cairo_pdf_surface_set_size'
/lib/libgtk-x11-2.0.so: undefined reference to `cairo_ps_surface_set_size'
/lib/libgtk-x11-2.0.so: undefined reference to `cairo_surface_get_type'
collect2: ld 返回 1
make: *** [helloworld] 错误 1
我用的FC7
我装了glib, cairo-devel等等,为什么无法编译呢?
恳请各位仁兄赐教。 |
|