[Gdal-dev] GDAL + Link Error

salah jubeh s_jubeh at yahoo.com
Thu Mar 9 10:58:10 EST 2006


Hello 
  
 I couldn't build gdal with the new release , i have  solve the link error , but after that i get many error "unresolved  external ...", also i compared the structure of the two versions the  are much different.
  
 I used older version which is HDF41r5 ,  the code compiled but you have to copy 4 lib library to gdal home which  are hd415.lib, hm415.lib, hd415m.lib, hm415m.lib

Frank Warmerdam <warmerdam at pobox.com> wrote:  salah jubeh wrote:
> I have edited gdal  nmake.opt to specify the hdf location folder , i 
> specefy it like this
>  
> # Uncomment the following and update to enable NCSA HDF Release 4 support.
> HDF4_DIR = C:\projects\42r1-win\release
> HDF4_LIB = /LIBPATH:$(HDF4_DIR)\lib Ws2_32.lib
>  
> why i get the link error
>  
> LINK : fatal error LNK1104: cannot open file 'HD421m.lib'
>  
> I checked this file and it is exist in
> C:\projects\42r1-win\release\dll

Salah,

I would suggest you change to something like:

HDF4_DIR = C:\projects\42r1-win
HDF4_LIB = /LIBPATH:$(HDF4_DIR)\release\dll Ws2_32.lib

It seems the NCSA has changed the layout of their distributed
binaries.

> Also what is Ws2_32.! lib i have nothing like this in the HDF 
> distribution folder.

It is a Microsoft library.  I can't recall what it does, though you
could check in google.

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    | President OSGF, http://osgeo.org



		
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20060309/5e2e4229/attachment.html


More information about the Gdal-dev mailing list