A problem on compiling a petsc code.

2009-11-11 Thread Satish Balay
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!
 



A problem on compiling a petsc code.

2009-11-11 Thread Yin Feng
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/2009/e75e69ad/attachment.htm


A problem on compiling a petsc code.

2009-11-11 Thread Satish Balay
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!
  
 
 
 



A problem on compiling a petsc code.

2009-11-10 Thread Yin Feng
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/20091110/c75e523c/attachment.htm