HDF426-win64 : error LNK2019

I am using Visual Studio2008 Express edition.
I have mostly followed
http://src.gnu-darwin.org/ports/science/hdf/work/HDF4.2r1/INSTALL_WINDOWS.txt.
Then I got the following errors:

40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_inflate referenced in function _HCIcdeflate_decode
40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_inflateEnd referenced in function _HCIcdeflate_term
40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_deflateEnd referenced in function _HCIcdeflate_term

Could anyone help me?

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF426-win64-error-LNK2019-tp3100242p3100242.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Hello Asuka,

I am using Visual Studio2008 Express edition.
I have mostly followed
http://src.gnu-darwin.org/ports/science/hdf/work/HDF4.2r1/INSTALL_WINDOWS.txt.
Then I got the following errors:

40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_inflate referenced in function _HCIcdeflate_decode
40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_inflateEnd referenced in function _HCIcdeflate_term
40>hd426d.lib(cdeflate.obj) : error LNK2019: unresolved external symbol
_deflateEnd referenced in function _HCIcdeflate_term

Could anyone help me?

These errors indicate that it is not finding the ZLIB library. HDF4 requires
the ZLIB and JPEG libraries. Are you specifying a ZLIB library? The errors
also indicate that you are in debug mode. By default, HDF4 will expect the
ZLIB library to be debug if you are building in debug.

Are you using the HDF4 pre-built binaries or building from source? The
subject line mentions "HDF426-win64". The pre-built binaries are built in
release mode only. Also, to let you know, we think Visual Studio Express
only works with 32-bit (not 64-bit) and it does not support Fortran.

The INSTALL_WINDOWS.txt file that you mention is several releases
old. To avoid problems you may want to use the INSTALL_WINDOWS.txt file
that comes with HDF 4.2.6. It can be found in the release_notes/ directory
of the latest HDF4 source code. From our web pages you can see it here:

http://www.hdfgroup.org/ftp/HDF/HDF_Current/src/unpacked/release_notes/INSTALL_WINDOWS.txt

I hope that helps!

-Barbara

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF426-win64-error-LNK2019-tp3100242p3100242.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

--
Barbara Jones
bljones@hdfgroup.org

Hi Barbara

I have tried ZLIB which I have downloaded before (older version?), the
errors were solved.
Thank you.

Kind regards,

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/HDF426-win64-error-LNK2019-tp3100242p3138084.html
Sent from the hdf-forum mailing list archive at Nabble.com.