Hi guys, <div><br></div><div>I was trying to run the example on HDF5, </div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/src/dm/da/examples/tutorials/ex10.c.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/src/dm/da/examples/tutorials/ex10.c.html</a></div>
<div><br></div><div>But I could not. </div><div>This is what I get: </div><div>***************</div><div><div>&gt;&gt;make PETSC_DIR=/home/mmnasr/Softwares/petsc-3.1-p7 PETSC_ARCH=linux-gnu-c-opt ex10</div><div><br></div>
<div>/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/bin/mpicc -o ex10.o -c -Wall -Wwrite-strings -Wno-strict-aliasing -O -I/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/include -I/home/mmnasr/Softwares/petsc-3.1-p7/include -I/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/include -D__INSDIR__=src/dm/da/examples/tutorials/ ex10.c</div>
<div>/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/bin/mpicc -Wall -Wwrite-strings -Wno-strict-aliasing -O  -o ex10 ex10.o  -Wl,-rpath,/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/lib -L/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/lib -lpetsc    -Wl,-rpath,/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/lib -L/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/lib -lml -lmpichcxx -lstdc++ -lHYPRE -lmpichcxx -lstdc++ -lflapack -lfblas -lnsl -lrt -L/home/mmnasr/Softwares/petsc-3.1-p7/linux-gnu-c-opt/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.4.5 -L/usr/lib/x86_64-linux-gnu -ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -lgfortran -lm -lm -lmpichcxx -lstdc++ -lmpichcxx -lstdc++ -ldl -lmpich -lpthread -lrt -lgcc_s -ldl </div>
<div>ex10.o: In function `main&#39;:</div><div><b>ex10.c:(.text+0x3b7): undefined reference to `PetscViewerHDF5Open&#39;</b></div><div>collect2: ld returned 1 exit status</div><div>make: [ex10] Error 1 (ignored)</div><div>
/bin/rm -f -f ex10.o</div></div><div><br></div><div>************</div><div>It seems that it does not find the compiled library and/or header files for it. Any ideas?</div><div><br></div><div>Thanks, </div><div>Mohamad</div>
<div><br></div>