<?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 compiling with cygwin tools in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-cygwin-tools/m-p/968913#M16380</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am having a hard time trying to compile mkl applications with the cygwin tools. Has anyone tried that before?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a small test program I am trying to compile:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;&lt;BR /&gt;#include &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt;int numElements = 10;&lt;BR /&gt;&lt;BR /&gt;float input[numElements] ,output[numElements];&lt;BR /&gt;&lt;BR /&gt;int i;&lt;BR /&gt;&lt;BR /&gt;for(i=0;i&lt;BR /&gt;&lt;BR /&gt;input&lt;I&gt; = i+1;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;vsSqrt(numElements, input, output);&lt;BR /&gt;&lt;BR /&gt;for(i=0;i&lt;BR /&gt;&lt;BR /&gt;printf("output: %f", output&lt;I&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;return 0;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using the following command line:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gcc -IC:/Intel/MKL/8.0/include -LC:/Intel/MKL/8.0/ia32/lib src/testVectorSqrt.c -lmkl_ia32 -lmkl_c -lmkl_s_dll&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get the following errors (havent shown the entire trace):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x84): undefined reference to `_mkl_vml_core_w7_vml_sSqrt_HA'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x8e): undefined reference to `_mkl_vml_core_w7_vml_sSqrt_21'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x9f): undefined reference to `_mkl_vml_core_t7_vml_sSqrt_HA'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0xa9): undefined reference to `_mkl_vml_core_t7_vml_sSqrt_21'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Anwar&lt;/I&gt;&lt;/I&gt;</description>
    <pubDate>Sat, 15 Oct 2005 22:24:59 GMT</pubDate>
    <dc:creator>Anwar_Ludin</dc:creator>
    <dc:date>2005-10-15T22:24:59Z</dc:date>
    <item>
      <title>compiling with cygwin tools</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-cygwin-tools/m-p/968913#M16380</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am having a hard time trying to compile mkl applications with the cygwin tools. Has anyone tried that before?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here is a small test program I am trying to compile:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#include "mkl.h"&lt;BR /&gt;&lt;BR /&gt;#include &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;int main(){&lt;BR /&gt;&lt;BR /&gt;int numElements = 10;&lt;BR /&gt;&lt;BR /&gt;float input[numElements] ,output[numElements];&lt;BR /&gt;&lt;BR /&gt;int i;&lt;BR /&gt;&lt;BR /&gt;for(i=0;i&lt;BR /&gt;&lt;BR /&gt;input&lt;I&gt; = i+1;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;vsSqrt(numElements, input, output);&lt;BR /&gt;&lt;BR /&gt;for(i=0;i&lt;BR /&gt;&lt;BR /&gt;printf("output: %f", output&lt;I&gt;);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;return 0;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am using the following command line:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;gcc -IC:/Intel/MKL/8.0/include -LC:/Intel/MKL/8.0/ia32/lib src/testVectorSqrt.c -lmkl_ia32 -lmkl_c -lmkl_s_dll&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get the following errors (havent shown the entire trace):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:uuid.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;Warning: .drectve `-defaultlib:mkl_ia32.lib ' unrecognized&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x84): undefined reference to `_mkl_vml_core_w7_vml_sSqrt_HA'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x8e): undefined reference to `_mkl_vml_core_w7_vml_sSqrt_21'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0x9f): undefined reference to `_mkl_vml_core_t7_vml_sSqrt_HA'&lt;BR /&gt;&lt;BR /&gt;C:/Intel/MKL/8.0/ia32/lib/mkl_c.lib(./_tmp/interface_ia32_c/vml_ssqrt.obj):d:/800/09/vml/_src:(.text[_vsSqrt]+0xa9): undefined reference to `_mkl_vml_core_t7_vml_sSqrt_21'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Anwar&lt;/I&gt;&lt;/I&gt;</description>
      <pubDate>Sat, 15 Oct 2005 22:24:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-cygwin-tools/m-p/968913#M16380</guid>
      <dc:creator>Anwar_Ludin</dc:creator>
      <dc:date>2005-10-15T22:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: compiling with cygwin tools</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-cygwin-tools/m-p/968914#M16381</link>
      <description>You'll need to read cygwin documentation for hints, if you're serious about about dynamic linking. &lt;A href="http://www.cygwin.com/cygwin-ug-net/dll.html" target="_blank"&gt;http://www.cygwin.com/cygwin-ug-net/dll.html&lt;/A&gt;&lt;BR /&gt;I suspect the Microsoft style export .lib won't work with cygwin tools.&lt;BR /&gt;mkl_s_dll is built for the CVF modified stdcall interface.  Are you sure you want to use that?&lt;BR /&gt;If you try static linking, of course, the cygwin tools expect the library to be named .a, and expect it to contain .o files.  You could likely arrange a copy of the static library with the name changes.&lt;BR /&gt;You might also use cygwin gcc along with the Microsoft linker (e.g. from C++ 2003 toolkit), for static linking.  That should avoid any renaming.</description>
      <pubDate>Sat, 15 Oct 2005 23:43:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/compiling-with-cygwin-tools/m-p/968914#M16381</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-10-15T23:43:20Z</dc:date>
    </item>
  </channel>
</rss>

