<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16446">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>Hi Reuti:</FONT></DIV>
<DIV></DIV>
<DIV>"./configure --prefix</DIV>
<DIV>sudo make </DIV>
<DIV>sudo make install"</DIV>
<DIV>this is the way I installed the MPICH2. The version is 
MPICH2-1.0.7rc2.</DIV>
<DIV>Yes, you are right. I want to build a dynamic library with my application 
and try to add a static library from MPICH2.</DIV>
<DIV><FONT size=2 face=Verdana>So what can I do with this error?</FONT></DIV>
<DIV></DIV>
<DIV>Thanks and best regards!</DIV>
<DIV>geng</DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#000080 size=2 face=Verdana></FONT> </DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>2012-07-04 </FONT></DIV><FONT 
color=#000080 size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>crgeng_medphys</SPAN> 
</FONT></DIV><FONT color=#000080 size=2 face=Verdana>
<HR>
</FONT>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Reuti </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2012-07-04  23:44:10 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> mpich-discuss@mcs.anl.gov 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [mpich-discuss] mpich2 
some errors.. </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>Am 04.07.2012 um 09:05 schrieb crgeng_medphys:</DIV>
<DIV> </DIV>
<DIV>>  </DIV>
<DIV>> Dear Sir:</DIV>
<DIV>>  </DIV>
<DIV>> Thanks for your development of MPICH first.</DIV>
<DIV>> And I have a problem after I install mpich to compile my application.</DIV>
<DIV> </DIV>
<DIV>How did you install MPICH2 and which version?</DIV>
<DIV> </DIV>
<DIV>Do you want to build a dynamic library with your application and try to add a static library from MPICH2?</DIV>
<DIV> </DIV>
<DIV>-- Reuti</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>> The error is following,</DIV>
<DIV>> "</DIV>
<DIV>> /usr/bin/ld: /home/g/mpich2/lib/libmpichcxx.a(initcxx.o): relocation R_X86_64_32S against `vtable for MPI::Datatype' can not be used when making a shared object; recompile with -fPIC</DIV>
<DIV>> /home/g/mpich2/lib/libmpichcxx.a: could not read symbols: Bad value</DIV>
<DIV>> collect2: ld returned 1 exit status</DIV>
<DIV>> "</DIV>
<DIV>>  </DIV>
<DIV>> It probably means that I should recompile MPI with -fPIC. </DIV>
<DIV>> But I cannot understand the definite mean of this error, could you give me some advice?</DIV>
<DIV>> Thanks and best regards!</DIV>
<DIV>> Geng</DIV>
<DIV>>  </DIV>
<DIV>> crgeng_medphys</DIV>
<DIV>> _______________________________________________</DIV>
<DIV>> mpich-discuss mailing list     mpich-discuss@mcs.anl.gov</DIV>
<DIV>> To manage subscription options or unsubscribe:</DIV>
<DIV>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</DIV>
<DIV> </DIV>
<DIV>_______________________________________________</DIV>
<DIV>mpich-discuss mailing list     mpich-discuss@mcs.anl.gov</DIV>
<DIV>To manage subscription options or unsubscribe:</DIV>
<DIV>https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</DIV></FONT></DIV></BODY></HTML>