Re: [gtk-list] Missing Library
- From: johannes nada kth se (Johannes Keukelaar)
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Missing Library
- Date: Thu, 19 Mar 1998 09:07:03 +0100
//When compiling the first program list in the tutorial I receive
//the follwoing messages:
//
///usr/local/lib/libgdk.so: undefined reference to `XShmDetach'
///usr/local/lib/libgdk.so: undefined reference to `XShapeCombineMask'
///usr/local/lib/libgdk.so: undefined reference to `XShmCreateImage'
///usr/local/lib/libgdk.so: undefined reference to `XShmPutImage'
///usr/local/lib/libgdk.so: undefined reference to `XShmAttach'
///usr/local/lib/libgdk.so: undefined reference to `XShmQueryVersion'
//
//What library didn't I link?
//
//My system:
//Linux (intel) 2.0.33 RedHat 5.0 (with patches)
//glibc 2.0.6
//gtk 0.99.7 package
//
//the test compile ...
//gcc -L/usr/local/lib -L/usr/X11R6/lib -lgtk -lgdk -lglib -lX11 -o tt tt.c
That should really be something along the lines of
gcc `gtk-config --cflags` `gtk-config --libs` -o tt tt.c
Then it will work anywhere (well, almost).
//Thank you
//
//Richard
You're welcome,
Johannes.
--
"Some of god's greatest gifts are unanswered prayers" - Garth Brooks
Gathering Magician in a Magic-less world?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]