<?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 Newbie question: ifort library path in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750291#M6935</link>
    <description>&lt;P&gt;Is there a way to adjust the library path settings that ifort uses?&lt;/P&gt;
&lt;P&gt;The question might be trivial, but I haven't found an answer up to now. I wrote a few subroutines and put them into a static library using ar:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -c xxx.f &amp;amp;&amp;amp; ifort -c yyy.f &amp;amp;&amp;amp; ifort -c zzz.f&lt;/P&gt;
&lt;P&gt;$ar rcs libxyz.a xxx.o yyy.o zzz.o&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That works fine so far. I can use the library:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -o testxyz testxyz.f -L. -lxyz&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And it compiles and runs fine. I want to put libxyz.a in certain directory, say ~/lib/, and I want ifort to automatically look for libraries in that directory, so I do not need to specify the "-L." option in the future. How can I configure ifort to look for libraries also in ~/lib/ ? I do not have root-access on this machine, so I don't want to influence the system-wide behavior of ifort.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2008 10:43:31 GMT</pubDate>
    <dc:creator>hmalissa</dc:creator>
    <dc:date>2008-10-09T10:43:31Z</dc:date>
    <item>
      <title>Newbie question: ifort library path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750291#M6935</link>
      <description>&lt;P&gt;Is there a way to adjust the library path settings that ifort uses?&lt;/P&gt;
&lt;P&gt;The question might be trivial, but I haven't found an answer up to now. I wrote a few subroutines and put them into a static library using ar:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -c xxx.f &amp;amp;&amp;amp; ifort -c yyy.f &amp;amp;&amp;amp; ifort -c zzz.f&lt;/P&gt;
&lt;P&gt;$ar rcs libxyz.a xxx.o yyy.o zzz.o&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That works fine so far. I can use the library:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -o testxyz testxyz.f -L. -lxyz&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And it compiles and runs fine. I want to put libxyz.a in certain directory, say ~/lib/, and I want ifort to automatically look for libraries in that directory, so I do not need to specify the "-L." option in the future. How can I configure ifort to look for libraries also in ~/lib/ ? I do not have root-access on this machine, so I don't want to influence the system-wide behavior of ifort.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 10:43:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750291#M6935</guid>
      <dc:creator>hmalissa</dc:creator>
      <dc:date>2008-10-09T10:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: ifort library path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750292#M6936</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/405535"&gt;hmalissa&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Is there a way to adjust the library path settings that ifort uses?&lt;/P&gt;
&lt;P&gt;The question might be trivial, but I haven't found an answer up to now. I wrote a few subroutines and put them into a static library using ar:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -c xxx.f &amp;amp;&amp;amp; ifort -c yyy.f &amp;amp;&amp;amp; ifort -c zzz.f&lt;/P&gt;
&lt;P&gt;$ar rcs libxyz.a xxx.o yyy.o zzz.o&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That works fine so far. I can use the library:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -o testxyz testxyz.f -L. -lxyz&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And it compiles and runs fine. I want to put libxyz.a in certain directory, say ~/lib/, and I want ifort to automatically look for libraries in that directory, so I do not need to specify the "-L." option in the future. How can I configure ifort to look for libraries also in ~/lib/ ? I do not have root-access on this machine, so I don't want to influence the system-wide behavior of ifort.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 11:34:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750292#M6936</guid>
      <dc:creator>Cijo_Abraham_Mani</dc:creator>
      <dc:date>2008-10-09T11:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: ifort library path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750293#M6937</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/262179"&gt;cijoaj2003&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/405535"&gt;hmalissa&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;Is there a way to adjust the library path settings that ifort uses?&lt;/P&gt;
&lt;P&gt;The question might be trivial, but I haven't found an answer up to now. I wrote a few subroutines and put them into a static library using ar:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -c xxx.f &amp;amp;&amp;amp; ifort -c yyy.f &amp;amp;&amp;amp; ifort -c zzz.f&lt;/P&gt;
&lt;P&gt;$ar rcs libxyz.a xxx.o yyy.o zzz.o&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;That works fine so far. I can use the library:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;$ifort -o testxyz testxyz.f -L. -lxyz&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;And it compiles and runs fine. I want to put libxyz.a in certain directory, say ~/lib/, and I want ifort to automatically look for libraries in that directory, so I do not need to specify the "-L." option in the future. How can I configure ifort to look for libraries also in ~/lib/ ? I do not have root-access on this machine, so I don't want to influence the system-wide behavior of ifort.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I am suggesting you to add a link to both the directory and the library file in shared objects folder so that the problem might just get fixed and you need not have to use a "-L" option in the future .&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I was trying really hard to delete my previous , but I cannot . Is there a bug as the post was made automatically as I tried to reply to the thread .&lt;/P&gt;
&lt;P&gt;My answer is now added " &lt;EM&gt;&lt;EM&gt;I am suggesting you to add a link to both the directory and the library file in shared objects folder so that the problem might just get fixed and you need not have to use a "-L" option in the future ."&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 11:56:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750293#M6937</guid>
      <dc:creator>Cijo_Abraham_Mani</dc:creator>
      <dc:date>2008-10-09T11:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: ifort library path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750294#M6938</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Welcome to the Intel Fortran User Forum!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;The &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; is one mechanism available to accomplish what you want, however, that affects all users.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;A method providing user-only private control is to create a shell alias. For bash, you can create an ifort alias using:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: " courier="" new=""&gt;alias ifort='ifort -L/myhomepath/lib'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;As discussed below, both methods also only work for hiding the L option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;You will not gain much by hiding L option inside &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias. The linker (ld), which is invoked by ifort, does not simply search every static library residing a directory specified via L. Using user-supplied libraries requires one specify the L (unless the library resides in ".") and then a separate l option for each specific user library to search.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;I do not follow the earlier suggestion regarding sym-links, but if you really want to hide the L, the easiest option to suit your needs is to ues the alias. To use a custom &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt;, you would simply edit it accordingly. Using your earlier example, you would do the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Edit &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; so it contains the L path of interest. You cannot use the ~ to refer to your home directory. You must spell it out completely, so replace &lt;STRONG style="mso-bidi-font-weight: normal;"&gt;myhomepath&lt;/STRONG&gt; below with the fully qualified path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; would contain:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;-L/myhomepath/lib&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Then you can invoke ifort as follows when using either the alias or the custom &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial; mso-ansi-language: PT-BR;" lang="PT-BR"&gt;ifort -o testxyz testxyz.f -lxyz&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial; mso-ansi-language: PT-BR;" lang="PT-BR"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;From testing I conducted, you will only be able to place the L option into &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias. The link fails when placing both the L and l options in &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias because the l option gets positioned on the ld command line ahead of the actual object corresponding to the testxyz.f source file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 19:59:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750294#M6938</guid>
      <dc:creator>Kevin_D_Intel</dc:creator>
      <dc:date>2008-10-09T19:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie question: ifort library path</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750295#M6939</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/335337"&gt;Kevin Davis (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Welcome to the Intel Fortran User Forum!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;The &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; is one mechanism available to accomplish what you want, however, that affects all users.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;A method providing user-only private control is to create a shell alias. For bash, you can create an ifort alias using:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8pt; font-family: " courier="" new=""&gt;alias ifort='ifort -L/myhomepath/lib'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;As discussed below, both methods also only work for hiding the L option.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;You will not gain much by hiding L option inside &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias. The linker (ld), which is invoked by ifort, does not simply search every static library residing a directory specified via L. Using user-supplied libraries requires one specify the L (unless the library resides in ".") and then a separate l option for each specific user library to search.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;I do not follow the earlier suggestion regarding sym-links, but if you really want to hide the L, the easiest option to suit your needs is to ues the alias. To use a custom &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt;, you would simply edit it accordingly. Using your earlier example, you would do the following:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Edit &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; so it contains the L path of interest. You cannot use the ~ to refer to your home directory. You must spell it out completely, so replace &lt;STRONG style="mso-bidi-font-weight: normal;"&gt;myhomepath&lt;/STRONG&gt; below with the fully qualified path.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;&lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; would contain:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;-L/myhomepath/lib&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Then you can invoke ifort as follows when using either the alias or the custom &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt; text-indent: 0.5in;"&gt;&lt;STRONG style="mso-bidi-font-weight: normal;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial; mso-ansi-language: PT-BR;" lang="PT-BR"&gt;ifort -o testxyz testxyz.f -lxyz&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial; mso-ansi-language: PT-BR;" lang="PT-BR"&gt; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;From testing I conducted, you will only be able to place the L option into &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias. The link fails when placing both the L and l options in &lt;STRONG&gt;ifort.cfg&lt;/STRONG&gt; or the alias because the l option gets positioned on the ld command line ahead of the actual object corresponding to the testxyz.f source file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;
&lt;P class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 8.5pt; font-family: Verdana; mso-bidi-font-family: Arial;"&gt;Good luck!&lt;/SPAN&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If your shell is tcsh (or some other version of the C shell), you could use command history to control the placement of arguments relative to fixed text in your alias:&lt;/P&gt;
&lt;P&gt;alias ifort 'ifort -L/myhomepath/lib !* -lxyz'&lt;/P&gt;
&lt;P&gt;The bash version of alias is more restriced and can't do this, but bash has shell functions that can:&lt;/P&gt;
&lt;P&gt;function ifort () { command ifort -L/myhomepath/lib "$@" -lxyz }&lt;/P&gt;
&lt;P&gt;-Kurt&lt;/P&gt;
&lt;P&gt;Disclaimer: At the time I am posting this, I do not have convenient access to a Linux system, so I am posting the above alias and function without testing them. I have written similar aliases and functions in the past, so I have every reason to believe that the above will work, but there is always the possibility that there is some detail that I've incorrectly specified.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2008 23:17:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Newbie-question-ifort-library-path/m-p/750295#M6939</guid>
      <dc:creator>Hirchert__Kurt_W</dc:creator>
      <dc:date>2008-10-09T23:17:58Z</dc:date>
    </item>
  </channel>
</rss>

