ruderman@sbcs.sunysb.edu (David Ruderman) (04/10/90)
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!strauss@AEROSPACE.AERO.ORG (04/10/90)
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