[petsc-users] Problem with running HDF5 example

Mohamad M. Nasr-Azadani mmnasr at gmail.com
Tue Sep 6 19:13:21 CDT 2011


Hi guys,

I was trying to run the example on HDF5,
http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-3.1/src/dm/da/examples/tutorials/ex10.c.html

But I could not.
This is what I get:
***************
>>make PETSC_DIR=/home/mmnasr/Softwares/petsc-3.1-p7
PETSC_ARCH=linux-gnu-c-opt ex10

/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
/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
ex10.o: In function `main':
*ex10.c:(.text+0x3b7): undefined reference to `PetscViewerHDF5Open'*
collect2: ld returned 1 exit status
make: [ex10] Error 1 (ignored)
/bin/rm -f -f ex10.o

************
It seems that it does not find the compiled library and/or header files for
it. Any ideas?

Thanks,
Mohamad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110906/f2b7edc7/attachment.htm>


More information about the petsc-users mailing list