Linking Problem With Xlib?

Keith "Cheese Whiz" Gabryelski ag at amix.commodore.com
Sat Mar 9 01:33:05 AEST 1991


In article <1991Mar8.103924 at kowande.bu.oz.au> s000623 at 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 at amix.commodore.com                                 ...!cbmvax!amix!ag



More information about the Comp.unix.amiga mailing list