Re: Link error: gdk_display_new


take a look at <>
and look for 'gdk_display_new' ... I think you are trying to use a
function specific of the 2.6.x series of GTK :S.

Try to upgrade your gtk, but note: it's it could became a hard task in
SuSE :\ !!

Best Regards

On 4/5/05, Paul Santa Maria <paulsm1021 yahoo com> wrote:
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:

  ... and ...

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':
  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
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

Antonio Gomes
E-mail: antonio gomes indt org br
Embedded Linux Lab - 10LE
INdT - Instituto Nokia de Tecnologia (Manaus/Br)
NOKIA's Technology Institute

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