Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!uunet!cbmvax!amix!ag From: ag@amix.commodore.com (Keith "Cheese Whiz" Gabryelski) Newsgroups: comp.unix.amiga Subject: Re: Linking Problem With Xlib? Keywords: Xlib,X11 Message-ID: <1290@amix.commodore.com> Date: 8 Mar 91 15:33:05 GMT References: <1991Mar8.103924@kowande.bu.oz.au> Reply-To: ag@amix.commodore.com (Keith "Cheese Whiz" Gabryelski) Organization: Commodore-Amiga Unix Development Lines: 21 In article <1991Mar8.103924@kowande.bu.oz.au> s000623@kowande.bu.oz.au (Jason Patterson) writes: >eg: cc prog1.o prog2.o ... -lX11 produces... > >undefined symbols first referenced >getnetpath /usr/lib/libX11.a(Xstreams.o) >t_alloc /usr/lib/libX11.a(Xstreams.o) >t_open /usr/lib/libX11.a(Xstreams.o) >t_rcvdis /usr/lib/libX11.a(Xstreams.o) >t_netdir_free /usr/lib/libX11.a(Xstreams.o) Try: cc prog1.o prog2.o ... -lX11 -lnsl -lsocket The extra libs are networking magic. Pax, Keith -- Would you like some Bill Sperm with that? Keith Gabryelski Advanced Products Group ag@amix.commodore.com ...!cbmvax!amix!ag