Bug#614950: libgtk2.0-0: Linking error when compiling gtk program: libgdk-X11 does not link to libX11

Josselin Mouette joss at debian.org
Thu Feb 24 13:31:03 UTC 2011


Le jeudi 24 février 2011 à 13:09 +0000, Hazel Russman a écrit : 
> When compiling a gtk program using pkg-config, I received the following error:
> /usr/bin/ld: /usr/lib/gcc/i486-linux-
> gnu/4.4.5/../../../../lib/libgdk-x11-2.0.so: undefined reference to symbol
> 'XSetWMHints'
> /usr/bin/ld: note: 'XSetWMHints' is defined in DSO /usr/lib/libX11.so.6 so try
> adding it to the linker command line

It seems to me that libgdk-x11-2.0.so already links explicitly to
libX11, so it is correct. The bug might be in your code, do you use
XSetWMHints directly?

-- 
 .''`.
: :' :     “You would need to ask a lawyer if you don't know
`. `'       that a handshake of course makes a valid contract.”
  `-        --  J???rg Schilling







More information about the pkg-gnome-maintainers mailing list