undefined reference to symbol 'gdk_pixbuf_save_to_buffer'

Michael Schwendt mschwendt at gmail.com
Fri Sep 7 09:35:16 UTC 2012

On Fri, 7 Sep 2012 09:15:40 +0200 (CEST), Martin Gansser wrote:

> trying to build guayadeque on Fedora 18 Alpha, but this fails with the following error message:
> Linking CXX executable guayadeque
> [...] -o guayadeque -rdynamic -pthread -Wl,-z,relro -lwx_baseu-2.8 -lwx_gtk2u_core-2.8 -lwx_gtk2u_adv-2.8 -lwx_baseu_net-2.8 -lwx_gtk2u_html-2.8 -lwx_baseu_xml-2.8 -lwx_gtk2u_aui-2.8 -lwx_gtk2u_qa-2.8 -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0 -lsqlite3 -lcurl -ltag -lFLAC -lm -ldbus-1 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgpod -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lsqlite3 -lcurl -ltag -lFLAC -lm -ldbus-1 -lgio-2.0 -lgpod
> /bin/ld: CMakeFiles/guayadeque.dir/iPodMedia.o: undefined reference to symbol 'gdk_pixbuf_save_to_buffer'
> /bin/ld: note: 'gdk_pixbuf_save_to_buffer' is defined in DSO /lib64/libgdk_pixbuf-2.0.so.0 so try adding it to the linker command line

Have you tried that suggestion? -lgdk_pixbuf-2.0.so is not in the linker
options above.

Fedora release 17 (Beefy Miracle) - Linux 3.5.3-1.fc17.x86_64
loadavg: 0.12 0.35 0.18

More information about the devel mailing list