A problem on compiling a petsc code.

Satish Balay balay at mcs.anl.gov
Wed Nov 11 00:49:28 CST 2009

Please send the complete compile command that gave this error.

Also do PETSc examples compile/run correctly? What do you get for:

cd src/ksp/ksp/examples/tutorials
make ex2
make ex2f


On Tue, 10 Nov 2009, Yin Feng wrote:

> When I compiled petsc code, I encourntered following error code.
> the compiler is mpicc
> /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
> In function `_start':
> : undefined reference to `main'
> collect2: ld returned 1 exit status
> Thank you in advance!

More information about the petsc-users mailing list