undefined reference to ....

Satish Balay balay at mcs.anl.gov
Wed Jan 10 21:57:40 CST 2007


On Thu, 11 Jan 2007, Ben Tay wrote:

> Hi,
> 
> regarding "> > > -lirc -lgcc_s -lirc_s -ldl  -o a.out global.o  main.f90"
> 
> is it the correct order? my make file is in that order.

No its the wrong order. The correct order was indicated in the previous e-mail.

> > ${FLINKER} -o a.out global.o  main.o ${PETSC_LIB}

[note: -lirc -lgcc_s -lirc_s -ldl etc are the tail end of the PETSC_LIB listing]

To check for the correct order - do:

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

Satish




More information about the petsc-users mailing list