<?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: Linking the MKL to a C program using stdcall in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993251#M18124</link>
    <description />
    <pubDate>Mon, 28 Mar 2005 10:28:42 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2005-03-28T10:28:42Z</dc:date>
    <item>
      <title>Linking the MKL to a C program using stdcall</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993248#M18121</link>
      <description>Hi,&lt;BR /&gt;I just downloaded the MKL in order to test it.&lt;BR /&gt;&lt;BR /&gt;I have a very simple DLL project that I wrote in&lt;BR /&gt;Visual Studio 6.0 C/C++.&lt;BR /&gt;&lt;BR /&gt;The program tries to calls the function dgetrf from&lt;BR /&gt;the LAPACK library.&lt;BR /&gt;&lt;BR /&gt;I can compile the code. I can also link it when&lt;BR /&gt;I use the cdecl calling convention in the project&lt;BR /&gt;settings, and add mkl_c.lib to the object/library modules&lt;BR /&gt;in the input section of the link section of the settings.&lt;BR /&gt;&lt;BR /&gt;However when I try to compile the stdcall call convention&lt;BR /&gt;and replace mkl_c.lib with mkl_s.lib in the link section &lt;BR /&gt;of the settings, I can get this error:&lt;BR /&gt;&lt;BR /&gt;Linking...&lt;BR /&gt;   Creating library Release/mytests.lib and object Release/mytests.exp&lt;BR /&gt;HFTestRoutines.obj : error LNK2001: unresolved external symbol _dgetrf&lt;BR /&gt;../lib/mytests.dll : fatal error LNK1120: 1 unresolved externals&lt;BR /&gt;Error executing link.exe.&lt;BR /&gt;&lt;BR /&gt;mytests.dll - 2 error(s), 0 warning(s)&lt;BR /&gt;&lt;BR /&gt;I take it that the error means that Visual Studio C/C++ cannot &lt;BR /&gt;find the function. &lt;BR /&gt;&lt;BR /&gt;I need to compile using stdcall rather than cdecl. Does anyone&lt;BR /&gt;have any suggestions about what might be causing this problem &lt;BR /&gt;and how I could fix it? &lt;BR /&gt;&lt;BR /&gt;Many Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;     Jeff</description>
      <pubDate>Mon, 28 Mar 2005 04:42:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993248#M18121</guid>
      <dc:creator>jdmajsm</dc:creator>
      <dc:date>2005-03-28T04:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Linking the MKL to a C program using stdcall</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993249#M18122</link>
      <description>Did you check whether mkl_s.lib uses upper case linkage?</description>
      <pubDate>Mon, 28 Mar 2005 06:08:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993249#M18122</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-03-28T06:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Linking the MKL to a C program using stdcall</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993250#M18123</link>
      <description>Thanks Tim. In fact, I just tried this and was about to report &lt;BR /&gt;that changing lower to upper case solved the problem&lt;BR /&gt; but you beat me to it! Many thanks for your help. Jeff</description>
      <pubDate>Mon, 28 Mar 2005 06:16:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993250#M18123</guid>
      <dc:creator>jdmajsm</dc:creator>
      <dc:date>2005-03-28T06:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Linking the MKL to a C program using stdcall</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993251#M18124</link>
      <description />
      <pubDate>Mon, 28 Mar 2005 10:28:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-the-MKL-to-a-C-program-using-stdcall/m-p/993251#M18124</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2005-03-28T10:28:42Z</dc:date>
    </item>
  </channel>
</rss>

