A problem on compiling a petsc code.

Yin Feng yfeng1 at tigers.lsu.edu
Wed Nov 11 12:24:10 CST 2009


include ${PETSC_DIR}/conf/base
v:  a.o b.o
        -${CLINKER}  -g3 -O0 -o v  a.o b.o ${PETSC_SNES_LIB}

and I compiled ex2 successfully.

Thank you!


On Wed, Nov 11, 2009 at 12:49 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> 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!
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20091111/e75e69ad/attachment.htm>


More information about the petsc-users mailing list