Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!psuvax1!swatsun!jeremy From: jeremy@cs.swarthmore.edu (Jeremy Brest) Newsgroups: comp.sys.next Subject: Re: Xnext (mouse-X) Message-ID: <0PYZYPN@cs.swarthmore.edu> Date: 29 Mar 91 02:36:19 GMT References: <1991Mar15.212326.19805@neon.Stanford.EDU>> <1991Mar20.130027.17254@thunder.mcrcim.mcgill.edu> <1991Mar20.164422.10235@eplrx7.uucp> Distribution: na Organization: Swarthmore College, PA, USA Lines: 23 In <1991Mar20.164422.10235@eplrx7.uucp> cristy@eplrx7.uucp (John Cristy) writes: >I copied Mouse-X from Stanford. Everything appears to work ok, except >when I try to link a program with X11. I get undefined symbols: > cc test.c -lXext -lX11 -lm > _XErrorFunction > _qfree > _XHeadOfDisplayList > _Xdebug > _XIOErrorFunction You need to run ranlib (you need to be root) on the X libraries. Since the X libraries contain common symbols (which I gather is unorthodox), you have to use the -c option to ranlib: # ranlib -s /usr/lib/libX* At least that worked for me. Jeremy Brest Jeremy_Brest@NeXT.com NeXT Technical Publications