Hi managers,
I try to compile several GNU packages. As for most, the packages are
installed in /usr/local/{lib,include,shlib,...}. Every time it comes to
the linking stage, the linker complains:
cc -o jpegtopnm jpegtopnm.o `../libopt libpnm.so ../ppm/libppm.so
../pgm/libpgm.so ../pbm/libpbm.so ` -L/usr/local/lib -ljpeg \
ld:
Unresolved:
jpeg_std_error
jpeg_CreateDecompress
jpeg_destroy_decompress
jpeg_stdio_src
jpeg_read_header
jpeg_start_decompress
jpeg_read_scanlines
jpeg_finish_decompress
jpeg_calc_output_dimensions
jpeg_set_marker_processor
I'm pretty sure, the -ljpeg (in fact libjpeg.a is in place, access is ok
...) and -L/usr/local/lib should give the path to find the static lib.
But no way to go, ld WILL not link.
If I use
cc -o jpegtopnm jpegtopnm.o `../libopt libpnm.so ../ppm/libppm.so
../pgm/libpgm.so ../pbm/libpbm.so ` /usr/local/lib/libjpeg.a
linking goes well.
The lib itself is created using ranlib and should have the right tables
in it.
I'm very upset about this annoying problem. It breaks nearly every
compile procedure. Do you know, why this happens ??
TIA
Received on Wed Mar 21 2001 - 13:23:46 NZST