<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Building on CENTOS in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754469#M9956</link>
    <description>I'm trying to build a couplelarge applications under CENTOS using Composer XE. I have one working, but the other link and I don't understand why. I have a main source a.F and two libraries. p.a and u.a&lt;BR /&gt;&lt;BR /&gt;If I get a compiled as a.o&lt;BR /&gt;then do&lt;BR /&gt;&lt;BR /&gt;ifort ./a.o -o aexe -B/home/dajum/p.a -B/home/dajum/u.a&lt;BR /&gt;&lt;BR /&gt;It doesn't find routines in the libraries. Using -L instead of -B fails the same way.&lt;BR /&gt;&lt;BR /&gt;Using &lt;BR /&gt;&lt;BR /&gt;ld a.o /home/dajum/p.a /home/dajum/u.a -o aexe &lt;BR /&gt;&lt;BR /&gt;it finds library routines, but not fortran library routines like 'pow' and 'for_write_seq_fmt'&lt;BR /&gt;&lt;BR /&gt;trying &lt;BR /&gt;&lt;BR /&gt;ifort -o aexe ./a.o /home/dajum/p.a /home/dajum/u.a &lt;BR /&gt;&lt;BR /&gt;seems to find the library routines that are fortran sourced, but not the c sourced ones. &lt;BR /&gt;&lt;BR /&gt;What is the right way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 07 Apr 2011 15:59:26 GMT</pubDate>
    <dc:creator>David_J_2</dc:creator>
    <dc:date>2011-04-07T15:59:26Z</dc:date>
    <item>
      <title>Building on CENTOS</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754469#M9956</link>
      <description>I'm trying to build a couplelarge applications under CENTOS using Composer XE. I have one working, but the other link and I don't understand why. I have a main source a.F and two libraries. p.a and u.a&lt;BR /&gt;&lt;BR /&gt;If I get a compiled as a.o&lt;BR /&gt;then do&lt;BR /&gt;&lt;BR /&gt;ifort ./a.o -o aexe -B/home/dajum/p.a -B/home/dajum/u.a&lt;BR /&gt;&lt;BR /&gt;It doesn't find routines in the libraries. Using -L instead of -B fails the same way.&lt;BR /&gt;&lt;BR /&gt;Using &lt;BR /&gt;&lt;BR /&gt;ld a.o /home/dajum/p.a /home/dajum/u.a -o aexe &lt;BR /&gt;&lt;BR /&gt;it finds library routines, but not fortran library routines like 'pow' and 'for_write_seq_fmt'&lt;BR /&gt;&lt;BR /&gt;trying &lt;BR /&gt;&lt;BR /&gt;ifort -o aexe ./a.o /home/dajum/p.a /home/dajum/u.a &lt;BR /&gt;&lt;BR /&gt;seems to find the library routines that are fortran sourced, but not the c sourced ones. &lt;BR /&gt;&lt;BR /&gt;What is the right way to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 07 Apr 2011 15:59:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754469#M9956</guid>
      <dc:creator>David_J_2</dc:creator>
      <dc:date>2011-04-07T15:59:26Z</dc:date>
    </item>
    <item>
      <title>Building on CENTOS</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754470#M9957</link>
      <description>A look at the manual pages for &lt;SPAN style="text-decoration: underline;"&gt;ifort&lt;/SPAN&gt; and &lt;SPAN style="text-decoration: underline;"&gt;ld&lt;/SPAN&gt; would have told you that your first two commands above were bound to fail. &lt;BR /&gt;&lt;BR /&gt;The third command is correct as far as I can see, if the entire contents of p.a and u.a are to appear in the a.out, but you did not show what the error message said. Certain conditions have to be met in order for inter-language linking to work correctly.&lt;BR /&gt;&lt;BR /&gt;Neither the compiler driver nor the linker know the difference between "Fortran-sourced" and "C-sourced" objects and libraries at this point.</description>
      <pubDate>Thu, 07 Apr 2011 19:32:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754470#M9957</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2011-04-07T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Building on CENTOS</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754471#M9958</link>
      <description>I don't know what ifort should do with -Bsome.a. Normally, you would set -L to point to the library directory, and use -lyourlib, if the library file is named libyourlib.a. If your libraries aren't named according to libsomething.a, it should be possible simply to give the library name as you did, without -B or -L. Also, I would expect you to put your -o option before your list of objects and libraries.&lt;BR /&gt;ld has no knowledge about which libraries must be linked in an ifort build, even if the PATH variables are set by sourceing the compilervars script. You would need to find out (e.g. by ifort -#) how the ifort libraries are to be searched, and specify them. ld doesn't even know the libraries which g++ would require.&lt;BR /&gt;Are your C functions built by gcc or by icc? If you install the same version of icc and ifort, they must share all their directories, so there should be no problem finding icc libraries.&lt;BR /&gt;If built by gcc, it should be the same gcc version as the g++ version which is active to support ifort.&lt;BR /&gt;I haven't run into any problems with ifort/icc 12.0 on CentOS 5.5, other than the installer complaining about non-support, and that the JRE may not be the right one (to support idb). Many customers use CentOS, in spite of Intel not testing specifically on it.</description>
      <pubDate>Thu, 07 Apr 2011 19:47:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Building-on-CENTOS/m-p/754471#M9958</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-04-07T19:47:40Z</dc:date>
    </item>
  </channel>
</rss>

