Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!ascwide!ascgw!fgw2!fgw!pfrad!ace!melby From: melby@pappa.yk.fujitsu.co.jp (John Melby) Newsgroups: comp.windows.x Subject: Re: (none) Message-ID: Date: 7 Mar 91 01:16:27 GMT References: <9102282350.AA05633@hydro.Saic.COM> Sender: news@ace.yk.fujitsu.co.jp Organization: Open Systems Dept. Div. 2 Sect. 3, FUJITSU LTD. Lines: 33 Nntp-Posting-Host: pappa In-reply-to: larry@hydro.saic.COM's message of 28 Feb 91 23:50:02 GMT >cc -o xbox3 xbox3.c /usr/mit/lib/Xaw/libXaw.a /usr/mit/lib/Xmu/libXmu.a \ >/usr/mit/lib/Xt/libXt.a /usr/mit/lib/X/libX11.a >ld: >Undefined: >XShapeQueryExtension >XShapeCombineMask This really should be an FAQ, so here goes.... Subject: XX) Why can't I link to the Xlib shape routines? When I try to compile certain programs, I get the following link error: Undefined: _XShapeQueryExtension _XShapeCombineMask These routines are actually part of the Shape Extension to X (sex), which was introduced in the MIT X11R4 distribution and allows non-rectangular windows. Like the other sample server extensions, the shape extension will only run on a server which supports it. Pre-X11R4 servers, as well as many vendor-supplied servers, do not support the shape extension, in which case they will display rectangular windows anyway. In order to use the shape extension, one must link to the library libXext.a. In the X11R4 distribution, this library and the associated includes will be in the mit/extensions directory. If you do not have these files, do not despair: many freeware programs which use the shape extension can also be compiled without it by removing the -DSHAPE define from the Makefile. ----- John B. Melby Fujitsu Limited, Machida, Japan melby%yk.fujitsu.co.jp@uunet.uu.net