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 Satish 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! >