HDF5 linking error

Hello

When I am linking C source code "h5ex_t_arrayatt.c" downloaded from HDF5 home page with hdf5.lib, it has been shown following error messages.

1>Linking...
1>hdf5.lib(H5Omtime.obj) : error LNK2019: unresolved external symbol _timezone referenced in function _H5O_mtime_decode
1>oldnames.lib(timezone.obj) : error LNK2001: unresolved external symbol _timezone
1>oldnames.lib(timezone.obj) : error LNK2001: unresolved external symbol __timezone
1>C:\Users\Anders\Documents\src32\vizir\Debug\vizir.exe : fatal error LNK1120: 2 unresolved externals

I use Visual Studio 2008 and pre-compiled hdf5.lib downloaded from HDF5 page.

Could you please advice how to correct it?

Regrads,
Ichikawa

Hi Ichikawa,

I am out of the office until tomorrow, but I will look at this tomorrow morning.

_timezone should be declared if time.h is #included when time.h is
included so I'll check into that.

http://msdn.microsoft.com/en-us/library/htb3tdkc(v=VS.100).aspx

Cheers,

Dana

ยทยทยท

On Sat, Oct 15, 2011 at 9:02 PM, <ichikawa.doruju@jamss.co.jp> wrote:

Hello

When I am linking C source code "h5ex_t_arrayatt.c" downloaded from HDF5 home page with hdf5.lib, it has been shown following error messages.

1>Linking...
1>hdf5.lib(H5Omtime.obj) : error LNK2019: unresolved external symbol _timezone referenced in function _H5O_mtime_decode
1>oldnames.lib(timezone.obj) : error LNK2001: unresolved external symbol _timezone
1>oldnames.lib(timezone.obj) : error LNK2001: unresolved external symbol __timezone
1>C:\Users\Anders\Documents\src32\vizir\Debug\vizir.exe : fatal error LNK1120: 2 unresolved externals

I use Visual Studio 2008 and pre-compiled hdf5.lib downloaded from HDF5 page.

Could you please advice how to correct it?

Regrads,
Ichikawa

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