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">&lt;<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>&gt;</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&#39;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>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
asterix:/home/balay/tmp/petsc-dist-test/asterix64/lib&gt;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&gt;<br>
&lt;&lt;&lt;&lt;&lt;&lt;&lt;<br>
<font color="#888888"><br>
Satish<br>
</font><div><div></div><div class="h5"><br>
On Tue, 22 Sep 2009, Yujie wrote:<br>
<br>
&gt; Hello, PETSc developer<br>
&gt;<br>
&gt; I am trying to compile my codes. However, I got the following errors.<br>
&gt; &quot;Linking myproj-dbg...<br>
&gt; /home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference<br>
&gt; to `petscsetcommonblock_&#39;<br>
&gt; /home/yujie/codes/petsc-3.0.0-p3/linux/lib/libpetsc.so: undefined reference<br>
&gt; to `petscgetcommoncomm_&#39;<br>
&gt; &quot;<br>
&gt; I can&#39;t find &quot;petscsetcommonblock_&quot; and &quot;petscgetcommoncomm_&quot;. I have<br>
&gt; checked libpetsc.so using nm commands as follows:<br>
&gt; &quot;00000000000c65a4 T petscsequentialphasebegin_<br>
&gt; 00000000000c6574 T petscsequentialphaseend_<br>
&gt;                                 U petscsetcommonblock_<br>
&gt; 0000000000032cb4 T petscsetdefaultdebugger_<br>
&gt; ......<br>
&gt;<br>
&gt; 00000000003dcba0 B petscfortran9_<br>
&gt; 00000000001441a2 T petscfprintf_<br>
&gt; 000000000013e2c8 T petscgetarchtype_<br>
&gt;                              U petscgetcommoncomm_<br>
&gt; 0000000000052f18 T petscgetcputime_<br>
&gt; 000000000014761e T petscgetflops_<br>
&gt; &quot;<br>
&gt; There is not the address linker for them. I can&#39;t find the realization for<br>
&gt; these two functions in PETSc codes. Could you give me some advice?<br>
&gt; CPU in my PC is x86_64bits. GCC is 4.2 version. Thanks a lot.<br>
&gt;<br>
&gt; Regards,<br>
&gt; Yujie<br>
&gt;<br>
<br>
</div></div></blockquote></div><br>