Link error: gdk_display_new



Hi -

I'm a complete newbie to GTK+:

We're writing a Linux-based app; one of our requirements is that the GUI must
be able to address multiple different video cards independently.

SuSE 9.2 recognizes each of the three video cards in our system, and addresses
them as:

  unix:0.0
  unix:0.1
  ... and ...
  unix:0.2

So far, so good.

I've installed the default GTK+/GDK libraries that come with SuSE 9.2 (GTK2,
2.4.9-10.1), and I'm trying to adapt the sample code in "Multi-head Support
Overview".  It's failing with this link error:

  make =>
gcc  -g -O2   -o hello_glade  main.o support.o interface.o callbacks.o \
  -Wl,--export-dynamic -L/opt/gnome/lib -lgtk-x11-2.0 -lgdk-x11-2.0 \
  -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 \
  -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
main.o(.text+0xb2): In function `main':
/home/paulsm/proj/hello_glade/src/main.c:56:
  undefined reference to `gdk_display_new'

I checked all the libraries in /opt/gnome/lib and all the headers in
/opt/gnome/include/gdk, but I cannot find "gdk_display_new()".


Any idea what I'm doing wrong?  What I should do to resolve the problem?

Thank you very much in advance .. PSM



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