<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Thanks a lot. It works.<br><div><hr id="stopSpelling">Date: Fri, 4 Oct 2013 14:00:09 -0500<br>Subject: Re: [petsc-users] cannot find PetscViewerHDF5 functions in libraries<br>From: knepley@gmail.com<br>To: pengxwang@hotmail.com<br>CC: petsc-users@mcs.anl.gov<br><br><div dir="ltr">On Fri, Oct 4, 2013 at 1:48 PM, Roc Wang <span dir="ltr"><<a href="mailto:pengxwang@hotmail.com" target="_blank">pengxwang@hotmail.com</a>></span> wrote:<br><div class="ecxgmail_extra"><div class="ecxgmail_quote">
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
<div><div dir="ltr">Hello,<br><br> 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.<br>
<br> 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.<br> </div>
</div>
</blockquote></div><br>If we do not install HDF5 for you, you still have to activate it during configure, --with-hdf5-include= --with-hdf5-lib=.</div><div class="ecxgmail_extra"><br></div><div class="ecxgmail_extra"> Matt<br clear="all">
<div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener
</div></div></div> </div></body>
</html>