It would be great if the HDF5 C & C++ libraries could support
auto-linking on supported platforms. As far as I know, "all" Windows
compilers have supported auto-linking for the last decade
(http://msdn.microsoft.com/en-us/library/7f0aews7.aspx).
This can be achieved by adding a few pragma-comment statements in one C
and one C++ headers that are always included. Example:
// Auto-linking of HDF5 C library
#ifdef _WIN32
# ifdef _DEBUG
# pragma comment(lib, "hdf5_D.lib")
# else
# pragma comment(lib, "hdf5.lib")
# endif
#endif
// Auto-linking of HDF5 C++ library
#ifdef _WIN32
# ifdef _DEBUG
# pragma comment(lib, "hdf5_cpp_D.lib")
# else
# pragma comment(lib, "hdf5_cpp.lib")
# endif
#endif
Thank in advance,
Fredrik Orderud
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org