While building an executable based on the netcdf library (built upon HDF version 1.8.14) I encountered the issue originating from not supplying -ldl option to the linker to resolve all the symbols needed by the underlying HDF library. This was a surprise to me as to the best of my recollection, I don’t recall having to supply this option to linkers in the previous versions. In fact when i build netcdf applications on my mac (with HDF version 1.8.11) I don’t supply -ldl to resolve symbols.
So I tried to compile a static version of HDF in hopes that I won’t have to link to dl, but that didn’t help either. My question is then - is it not possible to make a completely static executable? Furthermore, why does the linking work without -ldl on my mac with version 1.8.11, but fails on ubuntu with version 1.8.14? The netcdf version is different between these machines - on my mac it is 4.30 and on ubuntu it is 4.32, does this make a difference? Thank you, — Deepak _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://mail.lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
