primax: primax_scan-0.2 >>>> please help
Subject:
Re: primax_scan-0.2 >>>> please help
From:
####@####.#### (Dominic Mitchell)
Date:
3 Mar 2000 09:54:19 -0000
Message-Id: <20000303094330.B2223@voodoo.pandhm.co.uk>
On Thu, Mar 02, 2000 at 10:06:09PM +0100, Oliver Larisch wrote:
> Now, I` ve installed libtiff-devel and zlib-devel
>
> but my output was:
>
> debian:/tmp/primax_scan-0.93# make
> cc -ltiff -ljpeg -lm -lz -O3 primax_scan.o probe_lp.o epp.o tables.o LM9811.o -o primax_scan
> primax_scan.o: In function `tiff_open':
> /tmp/primax_scan-0.93/primax_scan.c:171: undefined reference to `TIFFOpen'
[snip]
That is a common problem (I'm not sure how it's happened), but all the
libraries (the flags beginning with -l) need to be specified at the end
of the command line. If you edit the Makefile and change the line:
cc -ltiff -ljpeg -lm -lz -O3 $(PRIMAX_SCAN_OBJS) -o $@
to read:
cc -O3 $(PRIMAX_SCAN_OBJS) -o $@ -ltiff -ljpeg -lm -lz
Then things will work better. While you're editing the Makefile, be
careful that the initial bit of space on that line stays a tab and
doesn't get converted to 8 spaces, or make will barf.
--
Dom Mitchell -- Palmer & Harvey McLane -- Unix Systems Administrator
MCSE -- Minesweeper Consultant & Solitaire Expert