You may have to include the path/lib to szip or zlib, and you need to link in the C HDF5 library (-lhdf5), and you may need to link in the high level HDF5 library, -lhdf5hl_fortran -lhdf5_hl
Scot > On Aug 12, 2016, at 9:59 AM, Akshay Subramaniam <[email protected]> wrote: > > Hi, > > I'm trying to compile my application with HDF5 on a BG/Q system. If I use > mpixlf2008_r -I<hdf5_path>/include -L<hdf5_path>/lib -lhdf5_fortran, I get > linking errors saying undefined references to a bunch of hdf5 routines. If I > use the h5pfc wrapper though, I am able to compile my program, but I want to > avoid doing that. What is the right way of compiling a parallel HDF5 fortran > program without using the compiler wrapper? > > -- Akshay > _______________________________________________ > Hdf-forum is for HDF software users discussion. > [email protected] > http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org > Twitter: https://twitter.com/hdf5 _______________________________________________ Hdf-forum is for HDF software users discussion. [email protected] http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5
