Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!snorkelwacker!bloom-beacon!AEROSPACE.AERO.ORG!strauss From: strauss@AEROSPACE.AERO.ORG Newsgroups: comp.windows.x Subject: Re: Compilation question Message-ID: <9004100426.AA25471@antares.aero.org> Date: 10 Apr 90 04:26:39 GMT References: <7526@sbcs.sunysb.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Aerospace Corporation Lines: 33 In article <7526@sbcs.sunysb.edu> you write: > > I was just trying to compile some example programs that come >with X11R4. The makefile doesnt match the directory names for the >include files, but I found them. > >when I do this: >cc -g -I/usr/lib/X11 -L/usr/lib/X11 -mc68020 -o xwidgets > xwidgets.c -lXaw -lXmu -lXt -lX11 > >I get this: > >Undefined: >_sin >_cos >_XShapeQueryExtension >_XShapeCombineMask > > Any advice for this X novice? > >-- >-------------------------- - >David Ruderman ( # ) O ' ' ' ' ' ' ' >Racquetball Commissioner Y Racquetball >-------------------------- I Uber Alles! You need to include two more libraries in your list. sin and cos come from your system's math library, so including -lm at the end of the list should solve those two. The two shape functions come from the X extension library. You should include -lXext before -lX11 on the compile line. That should take care of it. - |Daryll