I have solved it. Thanks so much, Barry and Satish:).<br><br>Regards,<br>Yujie<br><br><div class="gmail_quote">On Tue, Sep 22, 2009 at 2:26 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">petscgetcommoncomm_ should be in somefort.F<br>
<br>
Can you verify if you've configured/compiled PETSc with a<br>
fortran compiler.<br>
<br>
And also verify that there are no errors during petsc build [i.e in<br>
make.log]<br>
<br>
<br>
>>>>>><br>
asterix:/home/balay/tmp/petsc-dist-test/asterix64/lib>nm -Ao *.a |grep -i petscgetcommoncomm<br>
libpetsc.a:zstart.o: U petscgetcommoncomm_<br>
libpetsc.a:somefort.o:00000000000000a2 T petscgetcommoncomm_<br>
asterix:/home/balay/tmp/petsc-dist-test/asterix64/lib><br>
<<<<<<<<br>
<font color="#888888"><br>
Satish<br>
</font><div><div></div><div class="h5"><br>
On Tue, 22 Sep 2009, Yujie wrote:<br>
<br>
> Hello, PETSc developer<br>
><br>
> I am trying to compile my codes. However, I got the following errors.<br>
> "Linking myproj-dbg...<br>
> /home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference<br>
> to `petscsetcommonblock_'<br>
> /home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference<br>
> to `petscgetcommoncomm_'<br>
> "<br>
> I can't find "petscsetcommonblock_" and "petscgetcommoncomm_". I have<br>
> checked libpetsc.so using nm commands as follows:<br>
> "00000000000c65a4 T petscsequentialphasebegin_<br>
> 00000000000c6574 T petscsequentialphaseend_<br>
> U petscsetcommonblock_<br>
> 0000000000032cb4 T petscsetdefaultdebugger_<br>
> ......<br>
><br>
> 00000000003dcba0 B petscfortran9_<br>
> 00000000001441a2 T petscfprintf_<br>
> 000000000013e2c8 T petscgetarchtype_<br>
> U petscgetcommoncomm_<br>
> 0000000000052f18 T petscgetcputime_<br>
> 000000000014761e T petscgetflops_<br>
> "<br>
> There is not the address linker for them. I can't find the realization for<br>
> these two functions in PETSc codes. Could you give me some advice?<br>
> CPU in my PC is x86_64bits. GCC is 4.2 version. Thanks a lot.<br>
><br>
> Regards,<br>
> Yujie<br>
><br>
<br>
</div></div></blockquote></div><br>