[petsc-users] cannot find PetscViewerHDF5 functions in libraries

Matthew Knepley knepley at gmail.com
Fri Oct 4 14:00:09 CDT 2013


On Fri, Oct 4, 2013 at 1:48 PM, Roc Wang <pengxwang at hotmail.com> wrote:

> Hello,
>
>    The version of Petsc I am using is 3.3-p6.  I have hdf5 1.8.11
> installed as well as. I am trying to use PetscViewerHDF5Open(),
> PetscViewerHDF5PushGroup(). But the compiling error shows undefined
> reference to `PetscViewerHDF5Open' and  undefined reference to
> `PetscViewerHDF5PushGroup'.  I also tried to compile
> /petsc-3.3-p6/src/vec/vec/examples/tutorials/ex19.c with petsc style
> makefile, the same error occurs.
>
>  My config options are --with-cc=gcc --with-fc=gfortran
> --download-f-blas-lapack --download-mpich --with-cxx=g++ --download-hypre=1
> --download-ml=1. Should I re-install petsc with --download-hdf5=1? Thanks.
>

If we do not install HDF5 for you, you still have to activate it during
configure, --with-hdf5-include= --with-hdf5-lib=.

   Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131004/d304df31/attachment.html>


More information about the petsc-users mailing list