[gdal-dev] gdal-config file lists different directories for libodbc and libodbcinst

Frank Warmerdam warmerdam at pobox.com
Wed Jan 26 22:39:20 EST 2011


On 11-01-26 10:29 PM, Greg Corradini wrote:
> Hello,
>
> I'm trying to understand why my gdal-config file says libodbc(-lodbc) and
> libodbcinst(-lodbcinst) are located in /usr/local/lib:
>
> CONFIG_LIBS="-L/usr/local/lib -lgdal"
> CONFIG_DEP_LIBS=" -L/usr/local/lib -lgeos_c  -lsqlite3 -lodbc -lodbcinst
> -lxerces-c -lpthread -ljasper -lhdf5 -lmfhdfalt -ldfalt -lgif -ljpeg -lpng
> -lnetcdf -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl    -lcurl
> -Wl,-Bsymbolic-functions

Greg,

You are misreading the above.  The -L/usr/local/lib directive tells
the linker to look *first* in /usr/local/lib for libraries and then fallback
to the usual locations - normally /usr/lib.  It does not mean that all the
following libraries are expected to be found in /usr/local/lib.  Often the
configure logic puts a mismash of -L directives in the link directives
which can result in link time problems.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list