Re: Xlib / imake

1999-12-01 Thread Martin Waller

Hi all,
 I'm working my way through the O'Reilly Xlib book for something to do 
at

work
and I've hit a problem.
 If I try and build the first basicwin.c file using

 $gcc -g -owin basicwin.c -lXlib



Try adding -L/usr/X11R6/lib to the command line before -l and using -lX11 
instead of -lXlib.





I get

 ld: cannot open -lX11: No such file or directory

and if I try and build O'Reilly's example file usin imake I get a


Take a look at autoconf/automake instead of Imake:

ftp://ftp.ugcs.caltech.edu/pub/elef/autotools/toolsmanual.html

Quite a good example to get simple progs working here.

HTH

Martin

__
Get Your Private, Free Email at http://www.hotmail.com


Xlib / imake

1999-11-30 Thread rnewton3


Hi all,
 I'm working my way through the O'Reilly Xlib book for something to do at
work
and I've hit a problem.
 If I try and build the first basicwin.c file using

 $gcc -g -owin basicwin.c -lXlib

I get

 ld: cannot open -lX11: No such file or directory

and if I try and build O'Reilly's example file usin imake I get a different
problem,

 Imakefile.c:13: Imake.tmpl: No such file or directory
 imake: Exit code 33.
 Stop.

Now Imake.tmpl exists in

 /usr/X11R6/lib/X11/config

and I have installed all the X development libraries I can find, so my question
is, what
haven't I set up that I need to? I assume I need to configure a library path
somewhere
for the gcc line to work but which one? Also, why doesn't the Imake work? Surely
that
should have been configured by the install script or do I need to do something
to that
too?

All suggestions gratefully received.