[gdal-dev] More on compiling with HDF4, now on Windows

Joaquim Luis jluis at ualg.pt
Fri Jun 13 17:34:55 EDT 2008


The nmake.opt settings won't let us compile with HDF42r2.

While for 42r1 all we need is to set (like indicated in the file)

HDF4_DIR =    c:\prorgrams\HDF42r1
HDF4_LIB =    /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib

The above doesn't work for HDF42r2 (some 700 symbols not found)

By trial (and it worths what it worths) this worked
HDF4_LIB =   $(HDF4_DIR)\dll\hm422m.lib $(HDF4_DIR)\dll\hd422m.lib 
$(HDF4_DIR)\dll\mfhdf_fcstubdll.lib Ws2_32.lib

Joaquim Luis



More information about the gdal-dev mailing list