libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

HOWTO libtool --mode=link


From: Patrick Guio
Subject: HOWTO libtool --mode=link
Date: Tue, 7 Nov 2000 13:02:42 +0100 (CET)

Dear all

I have installed a HDF library conatining several archives
libdf.a
libjpeg.a
libmfhdf.a
libz.a

The problem is that on this DEC alpha there is a shared library
/usr/shlib/libjpeg.so which has not the same version and is not
compatible. Therefore when linking I get linker errors since it tries to
link with /usr/shlib/libjpeg.so.

/bin/ksh ../libtool --mode=link cxx  -nocompress -std strict_ansi
-DBZ_DISABLE_XOPEN_SOURCE -ieee  -L/mn/sothi/u1/patrickg/src/blitz/lib
-lblitz -L/mn/sothi/u1/patrickg/src/hdf/4.1r3_digunix/lib -lmfhdf -ldf
-ljpeg -lz -o Mudfas2d   Mudfas2d.o ../src/libmudfas2d.la
../src/libutilities.la -lm
cxx -nocompress -std strict_ansi -DBZ_DISABLE_XOPEN_SOURCE -ieee -o
Mudfas2d Mudfas2d.o  -L/mn/sothi/u1/patrickg/src/blitz/lib
-L/mn/sothi/u1/patrickg/src/hdf/4.1r3_digunix/lib
../src/.libs/libmudfas2d.a -L/astro/local/opt/HDF_4.1r3/4.1r3_digunix/lib
../src/.libs/libutilities.a -lblitz -lmfhdf -ldf -ljpeg -lz -lm


I can manually force the command to be
cxx ... /astro/local/opt/HDF_4.1r3/4.1r3_digunix/lib/libjpeg.a ...
But how do I tell libtool to do so with this library?

Sincerely

Patrick Guio





reply via email to

[Prev in Thread] Current Thread [Next in Thread]