<br><br><div class="gmail_quote">On Wed, Apr 13, 2011 at 3:26 PM, Brad King <span dir="ltr">&lt;<a href="mailto:brad.king@kitware.com">brad.king@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On 04/13/2011 02:44 PM, Jean-Christophe Fillion-Robin wrote:<br>
&gt; Is there a solution to find a library having a revision number ?<br>
<br>
</div>You can specify the actual library file name &quot;libgfortran.so.3&quot;.<br></blockquote><div>Great  <br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
However, you shouldn&#39;t need to find implicit compiler runtime libraries.<br>
Are you trying to mix C++ and Fortran?<br></blockquote><div><br>
More details ... <br>
<br>
1) I have a project XYZ that linked against VTK static which also linked GnuR shared<br>
<br>
2) Using the faster Gold linker  <font size="1">(/usr/bin/ld -&gt; /usr/bin/ld.gold)</font><br>
<br>
3) If building against VTK-shared there is no issue, if building against VTK-static,<br>
<br>tThe following undefined symbol errors arise:<br>
<font size="1"><br>
/usr/bin/ld: /home/jchris/Projects/R-2.11.1/lib64/R/lib/libRlapack.so: error: undefined reference to &#39;_gfortran_concat_string&#39;<br>
/usr/bin/ld: /home/jchris/Projects/R-2.11.1/lib64/R/lib/libRlapack.so: error: undefined reference to &#39;_gfortran_pow_i4_i4&#39;<br>
/usr/bin/ld: /home/jchris/Projects/R-2.11.1/lib64/R/lib/libRlapack.so: error: undefined reference to &#39;_gfortran_compare_string&#39;</font><br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
&gt; Within cmake, is there a possibility to retrieve the lib directories<br>
&gt; associated with the current compiler ?<br>
<br>
</div>CMake 2.8.x already does this.  Look in the CMakeFiles/CMake*Compiler.cmake<br>
files in your build tree.  However, these variables are generally meant<br>
for internal use by the link line computation code.<br></blockquote><div>Good to know <br>
<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
If a binary contains sources from both C++ and Fortran CMake already knows<br>
how to link it with C++ and pass the Fortran runtime libraries on the link<br>
line.<br>
<font color="#888888"><br>
-Brad<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br><br>