<?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 Re: Problem static linking Intel libraries with link in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759963#M15450</link>
    <description>Thanks, but -static doesn't work because I have third party libraries which I only have dynamic versions of.  Still, I need the Intel Fortran libraries to be linked statically so I can update my Fortran compiler for my long running jobs.&lt;BR /&gt;&lt;BR /&gt;What option do I use to statically link a library if it is available as static but to otherwise link a dynamic version?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David</description>
    <pubDate>Fri, 14 May 2004 05:09:19 GMT</pubDate>
    <dc:creator>dfumento</dc:creator>
    <dc:date>2004-05-14T05:09:19Z</dc:date>
    <item>
      <title>Problem static linking Intel libraries with link</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759961#M15448</link>
      <description>Hi,&lt;BR /&gt;I have precompiled binaries from gcc and Intel Fortran.  With either Intel 7.1 or Intel 8 I understand that the Intel libraries should be statically linked unless you specify -dynamic.&lt;BR /&gt;&lt;BR /&gt;When I try to link these pre-compiled binaries with ifort or ifc, the Intel Fortran libraries are dynamically linked (if I update the Intel Fortran compiler, my long running jobs terminate).&lt;BR /&gt;&lt;BR /&gt;What can I do to statically link the Intel Fortran libraries when I'm doing only a link with ifort and not a compile?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David</description>
      <pubDate>Fri, 14 May 2004 03:24:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759961#M15448</guid>
      <dc:creator>dfumento</dc:creator>
      <dc:date>2004-05-14T03:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem static linking Intel libraries with link</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759962#M15449</link>
      <description>If you have the .o files or .a (static) libraries, you can repeat the link, with the additional option -static. This will choose static libraries, in most cases where there is a choice. 
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2004 03:58:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759962#M15449</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-05-14T03:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem static linking Intel libraries with link</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759963#M15450</link>
      <description>Thanks, but -static doesn't work because I have third party libraries which I only have dynamic versions of.  Still, I need the Intel Fortran libraries to be linked statically so I can update my Fortran compiler for my long running jobs.&lt;BR /&gt;&lt;BR /&gt;What option do I use to statically link a library if it is available as static but to otherwise link a dynamic version?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David</description>
      <pubDate>Fri, 14 May 2004 05:09:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759963#M15450</guid>
      <dc:creator>dfumento</dc:creator>
      <dc:date>2004-05-14T05:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem static linking Intel libraries with link</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759964#M15451</link>
      <description>&lt;P&gt;-static still ought to work, it only gives the preference for when both versions of a library are available at link time. &lt;/P&gt;
&lt;P&gt;Another possibility would be to copy the dynamic libraries used by your application into a directory you reserve for this purpose, and set your LD_LIBRARY_PATH accordingly in the shell where you start the application. Then, you could change the compiler installation without disturbing the running application.&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 May 2004 07:09:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759964#M15451</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2004-05-14T07:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem static linking Intel libraries with link</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759965#M15452</link>
      <description>I think -static ought to work as you suggested, picking up the static library if there is one otherwise picking up the dynamic library, but instead my link aborts.&lt;BR /&gt;&lt;BR /&gt;I fixed the problem by explicitly stating the entire path for each of the Intel Fortran libraries (e.g. /usr/local/intel/.../lib/libPEPCF90.a)&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;David</description>
      <pubDate>Sat, 15 May 2004 01:15:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Problem-static-linking-Intel-libraries-with-link/m-p/759965#M15452</guid>
      <dc:creator>dfumento</dc:creator>
      <dc:date>2004-05-15T01:15:56Z</dc:date>
    </item>
  </channel>
</rss>

