[Gdal-dev] Trouble in link with hdf4

Fu Chen fchen at ne.rsgs.ac.cn
Wed Nov 19 02:19:19 EST 2003


Is there any probleam if I build gdal with /ML? Why gdal select to build with /MD as default?

----- Original Message ----- 
From: "Andrey Kiselev" <dron at ak4719.spb.edu>
To: <gdal-dev at remotesensing.org>
Sent: Wednesday, November 19, 2003 5:29 AM
Subject: Re: [Gdal-dev] Trouble in link with hdf4


> 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
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at remotesensing.org
> http://remotesensing.org/mailman/listinfo/gdal-dev



More information about the Gdal-dev mailing list