Hello, PETSc developer
I am trying to compile my codes. However, I got the following errors.
Linking myproj-dbg...
/home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference
to `petscsetcommonblock_'
/home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference
to
After PETSc is installed do the PETSc examples work? That is, does
make test run correctly?
If it does not run then send configure.log and make.log to petsc-maint at
mcs.anl.gov
If the tests do run then there is something wrong with your
makefiles and how you link to PETSc
petscgetcommoncomm_ should be in somefort.F
Can you verify if you've configured/compiled PETSc with a
fortran compiler.
And also verify that there are no errors during petsc build [i.e in
make.log]
asterix:/home/balay/tmp/petsc-dist-test/asterix64/libnm -Ao *.a |grep -i
petscgetcommoncomm
I have solved it. Thanks so much, Barry and Satish:).
Regards,
Yujie
On Tue, Sep 22, 2009 at 2:26 PM, Satish Balay balay at mcs.anl.gov wrote:
petscgetcommoncomm_ should be in somefort.F
Can you verify if you've configured/compiled PETSc with a
fortran compiler.
And also verify that there