in the test compilation

Pilhwa Lee leep at cims.nyu.edu
Thu Jun 15 11:06:02 CDT 2006


Hi,

I'm in the stage of testing compilation of an example. I'm using PETSc
2.1.6. In the course of compilation
of /petsc-2.1.6/src/vec/examples/tutorials/ex11f.F, the following errors
comes up. If any of you have some idea for solution, let me know please.

thanks, Pilhwa

the content of the log
--------------------------------------------------------------------
g77 -Wno-globals -c -g -I/home/leep/petsc-2.1.6 -
I/home/leep/petsc-2.1.6/bmake/linux64 -I/home/leep/petsc-2.1.6/include -
I/home/leep/mpich/include -DPETSC_USE_DEBUG -DPETSC_USE_LOG -
DPETSC_USE_BOPT_g -DPETSC_USE_STACK ex11f.F
g77 -g -Wl,-rpath,/home/leep/petsc-2.1.6/lib/libg/linux64  -o ex11f
ex11f.o  -L/home/leep/petsc-2.1.6/lib/libg/linux64 -lpetscfortran -
L/home/leep/petsc-2.1.6/lib/libg/linux64 -lpetscvec -lpetsc
-L/usr/X11R6/lib64 -lX11
-L/usr/lib64 -llapack -lblas -L/home/leep/mpich/lib -lmpich -lpmpich -
ldl -lc -lg2c -lm
/usr/lib/gcc/x86_64-redhat-linux/3.4.5/../../../../lib64/crt1.o(.text
+0x21): In function `_start':
: undefined reference to `main'
/home/leep/petsc-2.1.6/lib/libg/linux64/libpetscfortran.a
(zstartf.o)(.text+0x4f): In function `PetscInitializeFortran':
/home/leep/petsc-2.1.6/src/fortran/custom/zstartf.c:58: undefined
reference to `petscsetcommonblock_'
collect2: ld returned 1 exit status
make: [ex11f] Error 1 (ignored)
rm -f -f ex11f.o
------------------------------------------------------------------------







More information about the petsc-users mailing list