[Gdal-dev] Trouble in link with hdf4
Andrey Kiselev
dron at ak4719.spb.edu
Tue Nov 18 16:29:06 EST 2003
Hi,
On Tue, Nov 18, 2003 at 04:51:52PM +0800, Fu Chen wrote:
> I don't know how to link with hdf4 in win32 :<
> First download the prebuilt hdf415 package and unpack it in the gdal root.
> Then change two lines in nmake.opt.
> HDF4_DIR = D:\gdal\HDF41r5
> HDF4_LIB = /LIBPATH:$(HDF4_DIR)\libdbg
Add Ws2_32.lib here:
HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib
> But the rebuild of GDAL report the lib collide. I know the GDAL build
> at /MD or /MDd. But the default build process point to a single-thread
> hdf lib. cl say "Automatic linking with the debug static
> single-threaded HDF library".
You should rebuild GDAL witj /ML switch or rebuild HDF library with /MD.
Andrey
--
Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517
More information about the Gdal-dev
mailing list