<?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: LNK2005 error when linking to mkl_c.dll (for Lapack functio in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973715#M16909</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;Hi Bruce!&lt;/P&gt;
&lt;P&gt;I've tried the makefile you suggested but interestingly enough I got the same results I had inside the VS.NET IDE...&lt;/P&gt;
&lt;P&gt;&lt;PRE&gt;E:QuantsTestsfoo&amp;gt;nmake

Microsoft  Program Maintenance Utility   versione 7.00.9466
Copyright (C) Microsoft Corporation. Tutti i diritti riservati.

        icl /c -I"E:Program FilesIntelMKL60include" mkltest.c
Intel C++ Compiler for 32-bit applications, Version 7.1   Build 20030307Z
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
30 DAY EVALUATION LICENSE

mkltest.c
        link /libpath:"E:Program FilesIntelMKL60ia32lib" mkltest.obj mkl_c.lib
Microsoft  Incremental Linker Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

mkl_ia32.lib(p4_ssyrk_omp.obj) : error LNK2005: ___ssyrk_104__par_loop0 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(p4_ssyrk_omp.obj) : error LNK2005: ___ssyrk_162__par_loop1 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(def_ssyrk_omp.obj) : error LNK2005: ___ssyrk_104__par_loop0 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(def_ssyrk_omp.obj) : error LNK2005: ___ssyrk_162__par_loop1 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(p4_sgemm_omp.obj) : error LNK2005: ___sgemm_241__par_loop0 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(p4_sgemm_omp.obj) : error LNK2005: ___sgemm_259__par_loop1 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(def_sgemm_omp.obj) : error LNK2005: ___sgemm_241__par_loop0 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(def_sgemm_omp.obj) : error LNK2005: ___sgemm_259__par_loop1 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(p4_strsm_omp.obj) : error LNK2005: ___strsm_125__par_loop0 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(p4_strsm_omp.obj) : error LNK2005: ___strsm_148__par_loop1 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(def_strsm_omp.obj) : error LNK2005: ___strsm_125__par_loop0 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(def_strsm_omp.obj) : error LNK2005: ___strsm_148__par_loop1 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkltest.exe : fatal error LNK1169: rilevato uno o pi simboli definiti pi volte
NMAKE : errore irreversibile U1077: "link" : codice restituito "0x491"
Stop.

E:QuantsTestsfoo&amp;gt;
&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;I'm compiling on a Windows 2000 Advanced Server machine with 4 x 2.8 GHz P4 Xeon MP;strangely enough from the errors it looks like it linked the PIII binaries instead of the P4 ones.&lt;/P&gt;
&lt;P&gt;Note that I successfully compiled some BLAS and VSL examples so the problem seems to be related to the LAPACK stuff.&lt;/P&gt;
&lt;P&gt;Thank you for your help and enjoy a great weekend!&lt;/P&gt;
&lt;P&gt;-- Marco --&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Sat, 24 Jan 2004 02:19:48 GMT</pubDate>
    <dc:creator>dolom</dc:creator>
    <dc:date>2004-01-24T02:19:48Z</dc:date>
    <item>
      <title>LNK2005 error when linking to mkl_c.dll (for Lapack function)</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973713#M16907</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Hello there! I'm new to MKL so don't get upset if my questionturns out to besilly!&lt;/DIV&gt;
&lt;DIV&gt;I'm trying to compile my first code (I chose a Lapack function as first example)...&lt;/DIV&gt;
&lt;DIV&gt;&lt;PRE&gt;#include "mkl.h"
void main()
{
	char uplo[2] = "L";
	int n = 2;
	float a[4] = {2.0, 0.5, 0.5, 2.0};
	int lda = 2;
	int info = 0;
	spotrf( uplo, &amp;amp;n, a, &amp;amp;lda, &amp;amp;info);
}&lt;/PRE&gt;but as soon as I link (with mkl_c.lib, as suggested) I get the following error:&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;mkl_ia32.lib(p4_ssyrk_omp.obj) : error LNK2005: ___ssyrk_104__par_loop0 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)&lt;/FONT&gt;&lt;/DIV&gt;
&lt;P&gt;("gia definito" = "already defined") I could compile other examples so I must be missing something specific to Lapack... would you help me? Thank you! &lt;/P&gt;
&lt;P&gt;-- Marco --&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2004 23:35:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973713#M16907</guid>
      <dc:creator>dolom</dc:creator>
      <dc:date>2004-01-23T23:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: LNK2005 error when linking to mkl_c.dll (for Lapack functio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973714#M16908</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;There isn't anything obviously wrong with what you did. I took your program (calling it exp.c) and used the following makefile to build it:&lt;/P&gt;
&lt;P&gt;CC = icl&lt;BR /&gt;MKLDIR = c:mklmkl6.0ia32lib&lt;BR /&gt;MKLINC = c:mklmkl6.0include&lt;BR /&gt;exp.exe: exp.obj&lt;BR /&gt; link /libpath:$(MKLDIR) exp.obj mkl_c.lib&lt;/P&gt;
&lt;P&gt;exp.obj: exp.c&lt;BR /&gt; $(CC) /c -I$(MKLINC) exp.c&lt;/P&gt;
&lt;P&gt;Here is the result of making the program:&lt;/P&gt;
&lt;P&gt;C:	emplpexp&amp;gt;nmake&lt;/P&gt;
&lt;P&gt;Microsoft  Program Maintenance Utility Version 6.00.8168.0&lt;BR /&gt;Copyright (C) Microsoft Corp 1988-1998. All rights reserved.&lt;/P&gt;
&lt;P&gt; icl /c -Ic:mklmkl6.0include exp.c&lt;BR /&gt;Intel C++ Compiler for 32-bit applications, Version 7.0 Build 20021018Z&lt;BR /&gt;Copyright (C) 1985-2002 Intel Corporation. All rights reserved.&lt;/P&gt;
&lt;P&gt;exp.c&lt;BR /&gt; link /libpath:c:mklmkl6.0ia32lib exp.obj mkl_c.lib&lt;BR /&gt;Microsoft  Incremental Linker Version 6.00.8168&lt;BR /&gt;Copyright (C) Microsoft Corp 1992-1998. All rights reserved.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;C:	emplpexp&amp;gt;&lt;/P&gt;
&lt;P&gt;Please try this out. If you still have a problem come back and we will look at this anew.&lt;/P&gt;
&lt;P&gt;Bruce&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by bsgreer on &lt;SPAN class="date_text"&gt;01-23-2004&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:14 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2004 00:12:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973714#M16908</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2004-01-24T00:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: LNK2005 error when linking to mkl_c.dll (for Lapack functio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973715#M16909</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;Hi Bruce!&lt;/P&gt;
&lt;P&gt;I've tried the makefile you suggested but interestingly enough I got the same results I had inside the VS.NET IDE...&lt;/P&gt;
&lt;P&gt;&lt;PRE&gt;E:QuantsTestsfoo&amp;gt;nmake

Microsoft  Program Maintenance Utility   versione 7.00.9466
Copyright (C) Microsoft Corporation. Tutti i diritti riservati.

        icl /c -I"E:Program FilesIntelMKL60include" mkltest.c
Intel C++ Compiler for 32-bit applications, Version 7.1   Build 20030307Z
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.
30 DAY EVALUATION LICENSE

mkltest.c
        link /libpath:"E:Program FilesIntelMKL60ia32lib" mkltest.obj mkl_c.lib
Microsoft  Incremental Linker Version 7.00.9466
Copyright (C) Microsoft Corporation.  All rights reserved.

mkl_ia32.lib(p4_ssyrk_omp.obj) : error LNK2005: ___ssyrk_104__par_loop0 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(p4_ssyrk_omp.obj) : error LNK2005: ___ssyrk_162__par_loop1 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(def_ssyrk_omp.obj) : error LNK2005: ___ssyrk_104__par_loop0 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(def_ssyrk_omp.obj) : error LNK2005: ___ssyrk_162__par_loop1 gi definito in mkl_ia32.lib(p3_ssyrk_omp.obj)
mkl_ia32.lib(p4_sgemm_omp.obj) : error LNK2005: ___sgemm_241__par_loop0 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(p4_sgemm_omp.obj) : error LNK2005: ___sgemm_259__par_loop1 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(def_sgemm_omp.obj) : error LNK2005: ___sgemm_241__par_loop0 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(def_sgemm_omp.obj) : error LNK2005: ___sgemm_259__par_loop1 gi definito in mkl_ia32.lib(p3_sgemm_omp.obj)
mkl_ia32.lib(p4_strsm_omp.obj) : error LNK2005: ___strsm_125__par_loop0 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(p4_strsm_omp.obj) : error LNK2005: ___strsm_148__par_loop1 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(def_strsm_omp.obj) : error LNK2005: ___strsm_125__par_loop0 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkl_ia32.lib(def_strsm_omp.obj) : error LNK2005: ___strsm_148__par_loop1 gi definito in mkl_ia32.lib(p3_strsm_omp.obj)
mkltest.exe : fatal error LNK1169: rilevato uno o pi simboli definiti pi volte
NMAKE : errore irreversibile U1077: "link" : codice restituito "0x491"
Stop.

E:QuantsTestsfoo&amp;gt;
&lt;/PRE&gt;
&lt;/P&gt;&lt;P&gt;I'm compiling on a Windows 2000 Advanced Server machine with 4 x 2.8 GHz P4 Xeon MP;strangely enough from the errors it looks like it linked the PIII binaries instead of the P4 ones.&lt;/P&gt;
&lt;P&gt;Note that I successfully compiled some BLAS and VSL examples so the problem seems to be related to the LAPACK stuff.&lt;/P&gt;
&lt;P&gt;Thank you for your help and enjoy a great weekend!&lt;/P&gt;
&lt;P&gt;-- Marco --&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 24 Jan 2004 02:19:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973715#M16909</guid>
      <dc:creator>dolom</dc:creator>
      <dc:date>2004-01-24T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: LNK2005 error when linking to mkl_c.dll (for Lapack functio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973716#M16910</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Marco,&lt;/P&gt;
&lt;P&gt;This link error looks familiar to me. Links with the first version of Intel MKL 6.0 that was released in May 2003 showed error messages like this. A patch was released shortly thereafter (Intel MKL 6.0.1).&lt;/P&gt;
&lt;P&gt;What version of Intel MKL are you using? Version 6.1 is now available and provides improved performance.&lt;/P&gt;
&lt;DIV&gt;If you are using version 6.1 and are still getting these messages, I suggest you submit an issue at &lt;A href="http://premier.intel.com/" target="_blank"&gt;http://premier.intel.com&lt;/A&gt;.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Todd&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Feb 2004 02:35:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973716#M16910</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2004-02-10T02:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: LNK2005 error when linking to mkl_c.dll (for Lapack functio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973717#M16911</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Hello there!&lt;/P&gt;
&lt;P&gt;Sorry for my late reply: I confirm that the problem disappeared after upgrading to version 6.1.&lt;/P&gt;
&lt;P&gt;Cheers and thank you for your help!&lt;/P&gt;
&lt;P&gt;-- Marco --&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Mar 2004 01:13:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973717#M16911</guid>
      <dc:creator>dolom</dc:creator>
      <dc:date>2004-03-19T01:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: LNK2005 error when linking to mkl_c.dll (for Lapack functio</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973718#M16912</link>
      <description>Glad to help. -Todd
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Mar 2004 02:06:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/LNK2005-error-when-linking-to-mkl-c-dll-for-Lapack-function/m-p/973718#M16912</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2004-03-19T02:06:17Z</dc:date>
    </item>
  </channel>
</rss>

