A problem on compiling a petsc code.
Satish Balay
balay at mcs.anl.gov
Wed Nov 11 12:35:50 CST 2009
I need the *'complete make output'* from the PETSc example - and your code.
This output has the compile commands used [and associated errors]
Satish
On Wed, 11 Nov 2009, Yin Feng wrote:
> 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!
> > >
> >
> >
>
More information about the petsc-users
mailing list