Menu

#22 0.39 fails to compile fo-image.c

open
5
2006-12-15
2006-12-15
No

gcc -DHAVE_CONFIG_H -I. -I. -I.. -DG_LOG_DOMAIN=\"libfo\" -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -I/usr/include/libxml2 -I/opt/gnome/include/gdk-pixbuf-1.0 -I/opt/gnome/include -I/opt/gnome/include/gtk-1.2 -I/opt/gnome/include/glib-1.2 -I/opt/gnome/lib/glib/include -I.. -g -O2 -pthread -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include -MT fo-image.lo -MD -MP -MF .deps/fo-image.Tpo -c fo-image.c -fPIC -DPIC -o .libs/fo-image.o
fo-image.c: In function 'fo_image_set_uri':
fo-image.c:278: error: too many arguments to function 'gdk_pixbuf_new_from_file'
make[2]: *** [fo-image.lo] Error 1
make[2]: Leaving directory `/usr/local/src/xmlroff-0.3.99/util'

According to the API, this function takes only the filename argument, and error is detected by a return of NULL.

I appear to have version 2.2 of gdk-pixbuf.

The gcc version is 4.1 if it matters.

Discussion


Log in to post a comment.