<?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 The approach that you have in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173702#M146705</link>
    <description>&lt;P&gt;The approach that you have tried is sufficient for Fortran-77 calls, but not for Fortran-95+ calls.&lt;/P&gt;&lt;P&gt;If you wish to call MKL or other subroutines/functions that take optional arguments, have generic names with arguments of different types, etc., you must provide USE statements or interface blocks in your source files and specify that the corresponding BLAS-95 and Lapack-95 libraries be searched at link time. See &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/301587" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/301587&lt;/A&gt; for a related discussion, and use the MKL Link Line advisor &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; to configure the command lines for compiling and linking.&lt;/P&gt;&lt;P&gt;Posts on this topic are better served in the MKL forum, &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library&lt;/A&gt; .&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 01:34:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2018-12-11T01:34:00Z</dc:date>
    <item>
      <title>Can't link MKL to project</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173701#M146704</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm a very basic user of Visual Fortran.&lt;/P&gt;&lt;P&gt;I have a simple&amp;nbsp;Fortran program which I'm trying to run:&lt;/P&gt;
&lt;PRE class="brush:fortran; class-name:dark;"&gt;PROGRAM matrixinv
IMPLICIT NONE
REAL(8),DIMENSION(3,3)::A,C
INTEGER(4),DIMENSION(3)::IPVT
REAL(8)::RCOND
REAL(8),DIMENSION(3)::V,B
A(1,1)=3.0_8
A(1,2)=2.0_8
A(1,3)=-1.0_8
A(2,1)=2.0_8
A(2,2)=-2.0_8
A(2,3)=4.0_8
A(3,1)=-1.0_8
A(3,2)=0.5_8
A(3,3)=-1.0_8
B(1)=1.0_8
B(2)=-2.0_8
B(3)=0.0_8
call gesv(A,B)
PRINT*,B
END PROGRAM matrixinv&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This program uses gesv from MKL.&lt;/P&gt;
&lt;P&gt;My problem is not being able to link to MKL.&lt;/P&gt;
&lt;P&gt;Online instructions tell me to go to Project-&amp;gt; properties -&amp;gt; Fortran -&amp;gt; Libraries -&amp;gt; Use Intel Math Kernel Library -&amp;gt; Sequential (for example).&lt;/P&gt;
&lt;P&gt;I do that but I still get:&amp;nbsp;Severity&amp;nbsp;&amp;nbsp; &amp;nbsp;Code&amp;nbsp;&amp;nbsp; &amp;nbsp;Description&amp;nbsp;&amp;nbsp; &amp;nbsp;Project&amp;nbsp;&amp;nbsp; &amp;nbsp;File&amp;nbsp;&amp;nbsp; &amp;nbsp;Line&amp;nbsp;&amp;nbsp; &amp;nbsp;Suppression State&lt;BR /&gt;Error&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;error LNK2019: unresolved external symbol GESV referenced in function MAIN__&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Combined_Main.obj&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why won't the program recognize MKL?&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Dec 2018 19:12:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173701#M146704</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-08T19:12:40Z</dc:date>
    </item>
    <item>
      <title>The approach that you have</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173702#M146705</link>
      <description>&lt;P&gt;The approach that you have tried is sufficient for Fortran-77 calls, but not for Fortran-95+ calls.&lt;/P&gt;&lt;P&gt;If you wish to call MKL or other subroutines/functions that take optional arguments, have generic names with arguments of different types, etc., you must provide USE statements or interface blocks in your source files and specify that the corresponding BLAS-95 and Lapack-95 libraries be searched at link time. See &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/301587" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library/topic/301587&lt;/A&gt; for a related discussion, and use the MKL Link Line advisor &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor" target="_blank"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt; to configure the command lines for compiling and linking.&lt;/P&gt;&lt;P&gt;Posts on this topic are better served in the MKL forum, &lt;A href="https://software.intel.com/en-us/forums/intel-math-kernel-library" target="_blank"&gt;https://software.intel.com/en-us/forums/intel-math-kernel-library&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 01:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173702#M146705</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-11T01:34:00Z</dc:date>
    </item>
    <item>
      <title>I used the link advisor and</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173703#M146706</link>
      <description>&lt;P&gt;I used the link advisor and got this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;mkl_blas95_lp64.lib mkl_lapack95_lp64.lib mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib&lt;/P&gt;&lt;P&gt;Now what do I do with this line?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 22:00:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173703#M146706</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-11T22:00:18Z</dc:date>
    </item>
    <item>
      <title>Add "Use Lapack95" to your</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173704#M146707</link>
      <description>&lt;P&gt;Add "Use Lapack95" to your source, between the Program line and the IMPLICIT line.&amp;nbsp;Open the command window for Intel Fortran for 64-bit targets from the Start menu. Compile using&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;ifort /Qmkl Combined_Main.f90 mkl_blas95_lp64.lib mkl_lapack95_lp64.lib mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib&lt;/PRE&gt;

&lt;P&gt;Alternatively, if you are using Visual Studio, first make sure that the project is configured to use MKL (you have probably done this already). Then, select&amp;nbsp;the project Properties pane, add the list of libraries that you obtained from the MKL Advisor to Configuration Properties - Command Line - Additional Options, and check that the target is set to X64. Press OK, and then select Build.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 23:18:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173704#M146707</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-11T23:18:33Z</dc:date>
    </item>
    <item>
      <title>It doesn't work. I still get</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173705#M146708</link>
      <description>&lt;P&gt;It doesn't work. I still get "unresolved external symbol GESV"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 20:19:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173705#M146708</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-12T20:19:29Z</dc:date>
    </item>
    <item>
      <title>Please describe the steps</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173706#M146709</link>
      <description>&lt;P&gt;Please describe the steps that you tried.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have not done so already, you may need to do "Clean" and then "Build" from Visual Studio.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 02:25:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173706#M146709</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-13T02:25:00Z</dc:date>
    </item>
    <item>
      <title>Here are the things I did...</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173707#M146710</link>
      <description>&lt;P&gt;Here are the things I did...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 21:16:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173707#M146710</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-13T21:16:24Z</dc:date>
    </item>
    <item>
      <title>In the program itself I did</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173708#M146711</link>
      <description>&lt;P&gt;In the program itself I did not add anything...&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 21:18:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173708#M146711</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-13T21:18:18Z</dc:date>
    </item>
    <item>
      <title>Here is the error that I'm</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173709#M146712</link>
      <description>&lt;P&gt;Here is the error that I'm getting.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 21:19:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173709#M146712</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-13T21:19:45Z</dc:date>
    </item>
    <item>
      <title>You did not add the USE</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173710#M146713</link>
      <description>&lt;P&gt;You did not add the USE statement to your source, as advised in #4 and for the reasons stated in #2.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 23:11:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173710#M146713</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-13T23:11:00Z</dc:date>
    </item>
    <item>
      <title>This is the updated code.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173711#M146714</link>
      <description>&lt;PRE class="brush:fortran; class-name:dark;"&gt;This is the updated code. Still gives me the error. Do I need to add the advisor line:
"mkl_blas95_lp64.lib mkl_lapack95_lp64.lib mkl_intel_lp64.lib mkl_sequential.lib mkl_core.lib"
Only to the properties-&amp;gt;Fortran-&amp;gt;command line   or is there another place I need to put it? There are command line options in other "properties" menus like "Linker", "Resources", etc.

PROGRAM matrixinv
Use Lapack95
implicit none
REAL(8),DIMENSION(3,3)::A,C
INTEGER(4),DIMENSION(3)::IPVT
REAL(8)::RCOND
REAL(8),DIMENSION(3)::V,B
A(1,1)=3.0_8
A(1,2)=2.0_8
A(1,3)=-1.0_8
A(2,1)=2.0_8
A(2,2)=-2.0_8
A(2,3)=4.0_8
A(3,1)=-1.0_8
A(3,2)=0.5_8
A(3,3)=-1.0_8
B(1)=1.0_8
B(2)=-2.0_8
B(3)=0.0_8

call gesv(A,B)
PRINT*,B

END PROGRAM matrixinv&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 06:26:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173711#M146714</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-14T06:26:55Z</dc:date>
    </item>
    <item>
      <title>There are many places to</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173712#M146715</link>
      <description>&lt;P&gt;There are&amp;nbsp;many places to change settings in Visual Studio, and from your posts I cannot see which setting was set incorrectly. The "/c" in the command line in Capture2.jpg should not be there, since it tells the compiler to stop after compiling.&lt;/P&gt;&lt;P&gt;The most straightforward approach at this point, considering that you have a single short source file, is to open an Ifort-x64 command window, and build there using the command line of #4.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 08:48:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173712#M146715</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-14T08:48:06Z</dc:date>
    </item>
    <item>
      <title>It's very frustrating. My</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173713#M146716</link>
      <description>&lt;P&gt;It's very frustrating. My question is so simple and straightforwrd and I'm sure thousands of people use MKL each day. Why did they make it so difficult...&lt;/P&gt;&lt;P&gt;Where can I find the command window to try and compile from there?&lt;/P&gt;&lt;P&gt;Another question: Would it be a good idea to uninstall and reinstall the Intel Fortran? Could that solve the problem?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 09:44:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173713#M146716</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-14T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Quote:hollander, yair wrote:</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173714#M146717</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;hollander, yair wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's very frustrating. My question is so simple and straightforward and I'm sure thousands of people use MKL each day. Why did they make it so difficult...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My personal opinions: Intel is not to be blamed; the simple command line approach is completely adequate, but customers seem to prefer to live inside Visual Studio, despite the cost of doing so. VS is a complex MS product with many bells, whistles and knobs. It may work well for large projects. For simple single-file builds, such as yours, it is not only an overkill, it can be a source of much frustration. However, once you get the hang of it, VS can be a useful, if not pleasant, tool to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;hollander, yair wrote:&lt;BR /&gt;Where can I find the command window to try and compile from there?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Windows Start Menu-&amp;gt; Intel Parallel Studio yyyy -&amp;gt; Compiler and Performance Libraries -&amp;gt; Command Prompt with .... -&amp;gt; ... for Intel 64 ...&lt;/P&gt;&lt;P&gt;The exact titles depend on the version of Intel Fortran that you have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;hollander, yair wrote:&lt;BR /&gt;Another question: Would it be a good idea to uninstall and reinstall the Intel Fortran? Could that solve the problem? &lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO! There is nothing that I have seen to indicate that there is any problem with your installation. It takes many hours to do a complete installation, so do not do that unless it is really necessary.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 10:20:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173714#M146717</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-14T10:20:06Z</dc:date>
    </item>
    <item>
      <title>Please create a ZIP file of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173715#M146718</link>
      <description>&lt;P&gt;Please create a ZIP file of your entire VS project and attach it to a reply here. Screenshots are not useful.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 14:42:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173715#M146718</guid>
      <dc:creator>Steve_Lionel</dc:creator>
      <dc:date>2018-12-14T14:42:10Z</dc:date>
    </item>
    <item>
      <title>Steve, how can I make the zip</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173716#M146719</link>
      <description>&lt;P&gt;Steve, how can I make the zip file you requested?&lt;BR /&gt;Is there a way in VS to do that?&lt;/P&gt;&lt;P&gt;Wait...youtube...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:18:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173716#M146719</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-14T16:18:51Z</dc:date>
    </item>
    <item>
      <title>In VS 2017, the list of</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173717#M146720</link>
      <description>&lt;P&gt;In VS 2017, the list of additional libraries (mkl_blas95_lp64.lib mkl_lapack95_lp64.lib mkl_intel_lp64.lib mkl_sequential.lib&lt;BR /&gt;) should be inserted into the lower rectangle under Project Properties -&amp;gt; Configuration Properties -&amp;gt; Linker -&amp;gt; Command Line -&amp;gt; Additional Options.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 16:34:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173717#M146720</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2018-12-14T16:34:30Z</dc:date>
    </item>
    <item>
      <title>mecej4, I'm sending you</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173718#M146721</link>
      <description>&lt;P&gt;mecej4, I'm sending you kisses. It works now !!!!!!!&lt;/P&gt;&lt;P&gt;Steve, you would have probably figured the solution in a minute. Thank you as well.&lt;/P&gt;&lt;P&gt;:-)&lt;/P&gt;&lt;P&gt;I'm happy again.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2018 18:46:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Can-t-link-MKL-to-project/m-p/1173718#M146721</guid>
      <dc:creator>hollander__yair</dc:creator>
      <dc:date>2018-12-14T18:46:35Z</dc:date>
    </item>
  </channel>
</rss>

