<?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 compile error against MKL in Matlab mex C in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883018#M9757</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please provide the code quad_mkl.c?&lt;/P&gt;
&lt;P&gt;You may attach (see &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=62285how" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=62285how&lt;/A&gt; to attach) or simply copy/paste the code.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2010 03:29:20 GMT</pubDate>
    <dc:creator>Vladimir_Koldakov__I</dc:creator>
    <dc:date>2010-02-26T03:29:20Z</dc:date>
    <item>
      <title>compile error against MKL in Matlab mex C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883017#M9756</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am trying to compile a piece of code calling MKL into a matlab function. The code works great in VC++ in Windows XP sp3. So I wrote a mex wrapper for my code.&lt;/P&gt;
&lt;P&gt;My MKL version is 10.0.5.025 and my compile script looks like this.&lt;/P&gt;
&lt;P&gt;mex -v -I"D:\\Libs\\Intel\\MKL\\10.0.5.025\\include" quad_mkl.c D:\\Libs\\Intel\\MKL\\10.0.5.025\\ia32\\lib\\mkl_intel_c.lib D:\\Libs\\Intel\\MKL\\10.0.5.025\\ia32\\lib\\mkl_intel_thread.lib D:\\Libs\\Intel\\MKL\\10.0.5.025\\ia32\\lib\\mkl_core.lib D:\\Libs\\Intel\\MKL\\10.0.5.025\\ia32\\lib\\libguide40.lib&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;But the compiler (lcc) keeps complaining the following error message.&lt;/P&gt;
&lt;P&gt;Did I do anything wrong somewhere? Thanks!&lt;/P&gt;
&lt;BR /&gt;
&lt;P&gt;Warning H:\\Matlab\\hy\\mex\\quad_mkl.c:  D:\\Libs\\Intel\\MKL\\10.0.5.025\\include\\mkl_vsl_functions.h: 299 empty  declaration&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
Warning H:\\Matlab\\hy\\mex\\quad_mkl.c: D:\\Libs\\Intel\\MKL\\10.0.5.025\\include\\mkl_vsl_functions.h: 486 empty declaration &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 undeclared identifier `new' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 operands of = have illegal types `pointer to double' and `int' &lt;BR /&gt;Warning H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 possible usage of new before definition &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 syntax error; found `double' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 illegal statement termination &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 skipping `double' `[' &lt;BR /&gt;Warning H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 Statement has no effect &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 syntax error; found `]' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 illegal statement termination &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 skipping `]' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 operands of = have illegal types `pointer to double' and `int' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 syntax error; found `double' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 illegal statement termination &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 skipping `double' `[' &lt;BR /&gt;Warning H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 Statement has no effect &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 syntax error; found `]' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 illegal statement termination &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 36 skipping `]' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 operands of = have illegal types `pointer to double' and `int' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 syntax error; found `double' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 illegal statement termination &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 skipping `double' `[' &lt;BR /&gt;Warning H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 Statement has no effect &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 syntax error; found `]' expecting `;' &lt;BR /&gt;Error H:\\Matlab\\hy\\mex\\quad_mkl.c: 37 too many errors &lt;BR /&gt; &lt;BR /&gt; C:\\MATLAB\\R2008A\\BIN\\MEX.PL: Error: Compile of 'quad_mkl.c' failed. &lt;BR /&gt; &lt;BR /&gt;??? Error using ==&amp;gt; mex at 207&lt;BR /&gt;Unable to complete successfully.</description>
      <pubDate>Thu, 25 Feb 2010 20:51:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883017#M9756</guid>
      <dc:creator>Kai_S_</dc:creator>
      <dc:date>2010-02-25T20:51:43Z</dc:date>
    </item>
    <item>
      <title>compile error against MKL in Matlab mex C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883018#M9757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Could you please provide the code quad_mkl.c?&lt;/P&gt;
&lt;P&gt;You may attach (see &lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=62285how" target="_blank"&gt;http://software.intel.com/en-us/forums/showthread.php?t=62285how&lt;/A&gt; to attach) or simply copy/paste the code.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2010 03:29:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883018#M9757</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2010-02-26T03:29:20Z</dc:date>
    </item>
    <item>
      <title>compile error against MKL in Matlab mex C</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883019#M9758</link>
      <description>I solved the problem already. My code is c++ code (since I use "new" and "delete"), I shall name it quad_mkl.cpp and use a c++ compiler like VC++.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 26 Feb 2010 14:27:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compile-error-against-MKL-in-Matlab-mex-C/m-p/883019#M9758</guid>
      <dc:creator>Kai_S_</dc:creator>
      <dc:date>2010-02-26T14:27:38Z</dc:date>
    </item>
  </channel>
</rss>

