Compiling GTK




I've been trying to compile GTK and everything works great until it tries
to compile testgtk. I then get a long string of errors similar to

../gdk/.libs/libgdk.so: undefined reference to `XFreePixmap'

The compile command is

gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -o .libs/testgtk testgtk.o
-Wl,--rpath -Wl,/usr/local/lib .libs/libgtk.so -Wl,--rpath
-Wl,/usr/local/lib ../gdk/.libs/libgdk.so -L/usr/X11R6/lib
-L/usr/X11R6/lib -Wl,--rpath -Wl,/usr/local/lib ../glib/.libs/libglib.so
-lm

If I attach a -lX11 to the end this list shrinks to the following

/usr/X11R6/lib/libX11.so: undefined reference to `getpwuid_r'
/usr/X11R6/lib/libX11.so: undefined reference to `getpwnam_r'

What am I doing wrong? Should I be linking in the X11 library like this?
Forgive me but I'n a neophyte.

Tony

Charles Anthony Peterson
Graduate Student of Physics
at the University of Arizona
capeters@physics.arizona.edu
Office:(520)621-9558 Home:(520)881-6605
http://nanoscope2.opt-sci.arizona.edu/~xevious




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