I have been using h5py for a while and I just tried installing the hdf5 library for making programs in C. (hdf5-1.12.0). I need some help setting it up properly. I am using Linux (via Windows WSL 2).
My understanding is that I can compile programs using the h5cc program. But when I try:
h5cc -o h5ex.out h5ex_d_chunk.c
h5cc cannot find any of the headers.
But as far as I can tell, hdf5 was installed to \usr\local\hdf5
Also, I tied fixing the include file problem but h5cc seems to be looking for the following directory for library files:
gcc: error: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.a: No such file or directory gcc: error: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a: No such file or directory
Is there any advice on how I should fix this?