<?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: C/C++ Link error when LAPACK and BLAS is used  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847572#M6357</link>
    <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;It looks liike you are trying to compile and link C++ code, but are using the icc C compiler. The C++ compiler is icpc, which will be capable of C++, and, to a limited extent, C.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2008 01:25:04 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2008-11-14T01:25:04Z</dc:date>
    <item>
      <title>C/C++ Link error when LAPACK and BLAS is used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847569#M6354</link>
      <description>&lt;P&gt;I have used few BLAS and LAPACK functions in my code on OpenSUSE (64-bit). The code is compiled successfully but when the linking is in process, unresolved error message is shows. I have tried to add new compiler switches but the erorr is not solved. I also ran the environtment script from tools folder at MKL directory. The output I get is:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;make all-recursive&lt;BR /&gt;make[1]: Entering directory `/home/danesh/TEST/MKL'&lt;BR /&gt;Making all in doc&lt;BR /&gt;make[2]: Entering directory `/home/danesh/TEST/MKL/doc'&lt;BR /&gt;make[2]: Nothing to be done for `all'.&lt;BR /&gt;make[2]: Leaving directory `/home/danesh/TEST/MKL/doc'&lt;BR /&gt;Making all in include&lt;BR /&gt;make[2]: Entering directory `/home/danesh/TEST/MKL/include'&lt;BR /&gt;make[2]: Nothing to be done for `all'.&lt;BR /&gt;make[2]: Leaving directory `/home/danesh/TEST/MKL/include'&lt;BR /&gt;Making all in src&lt;BR /&gt;make[2]: Entering directory `/home/danesh/TEST/MKL/src'&lt;BR /&gt;/opt/intel/cce/10.1.018/bin/icc -O3 -openmp -parallel -ipo -mp -static -w -o mycode routines.o computation.o comp_wrapper.o util.o functions.o regexp.o model.o parser.o takeNum.o numCourse.o -L/opt/intel/mkl/10.0.5.025/lib/em64t/ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_solver_lp64 -lmkl_lapack -lmkl_em64t -lmkl_core -lguide -lpthread -lm&lt;BR /&gt;ipo: warning #11043: unresolved _ZNSt8ios_base4InitD1Ev&lt;BR /&gt; Referenced in /tmp/ipo_icckS9VB5.o&lt;BR /&gt;ipo: warning #11043: unresolved _ZTVN10__cxxabiv120__si_class_type_infoE&lt;BR /&gt; Referenced in /tmp/ipo_icckS9VB5.o&lt;BR /&gt;ipo: warning #11043: unresolved _ZTVN10__cxxabiv117__class_type_infoE&lt;BR /&gt; Referenced in /tmp/ipo_icckS9VB5.o&lt;BR /&gt;ipo: warning #11043: unresolved _ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_&lt;BR /&gt; Referenced in /tmp/ipo_icckS9VB5.o&lt;BR /&gt;ipo: warning #11043: unresolved _ZSt5flushIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_&lt;BR /&gt; Referenced in /tmp/ipo_icckS9VB5.o&lt;BR /&gt;ipo: warning #11043: unresolved __cxa_pure_virtual&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;and many other unresolved error. I can successfully compile example files. but my own code can not be compiled. Does anybody know what this happens?&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2008 01:07:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847569#M6354</guid>
      <dc:creator>danesh_d</dc:creator>
      <dc:date>2008-11-11T01:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ Link error when LAPACK and BLAS is used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847570#M6355</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;The errorsare ipo (inter procedural optimization) faults, so it is hardly connected with MKL. Could you try to build without -ipo option?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2008 06:31:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847570#M6355</guid>
      <dc:creator>Andrey_Bespalov</dc:creator>
      <dc:date>2008-11-13T06:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ Link error when LAPACK and BLAS is used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847571#M6356</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/206171"&gt;Andrey Bespalov (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;&lt;SPAN style="font-size: 7.5pt; color: black; font-family: Verdana;"&gt;The errorsare ipo (inter procedural optimization) faults, so it is hardly connected with MKL. Could you try to build without -ipo option?&lt;/SPAN&gt;&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Well I did and now I get these errors:&lt;/P&gt;
&lt;P&gt;FieldCalculator.cpp:(.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_[.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_]+0x1fe): undefined reference to `__cxa_end_catch'&lt;BR /&gt;FieldCalculator.cpp:(.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_[.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_]+0x210): undefined reference to `operator delete(void*)'&lt;BR /&gt;FieldCalculator.cpp:(.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_[.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_]+0x226): undefined reference to `std::__throw_bad_alloc()'&lt;BR /&gt;FieldCalculator.cpp:(.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_[.gnu.linkonce.t._ZNSt6vectorIS_I13complexVectorSaIS0_EESaIS2_EE9push_backERKS2_]+0x22b): undefined reference to `std::__throw_bad_alloc()'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;the interesting thing is that I have not used any of MKL libraries in "FieldCalculator.cpp" so I don't know what linker is complaining about.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Nov 2008 16:42:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847571#M6356</guid>
      <dc:creator>danesh_d</dc:creator>
      <dc:date>2008-11-13T16:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ Link error when LAPACK and BLAS is used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847572#M6357</link>
      <description>&lt;DIV style="margin: 0px; height: auto;"&gt;&lt;/DIV&gt;
&lt;P&gt;It looks liike you are trying to compile and link C++ code, but are using the icc C compiler. The C++ compiler is icpc, which will be capable of C++, and, to a limited extent, C.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2008 01:25:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847572#M6357</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-11-14T01:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: C/C++ Link error when LAPACK and BLAS is used</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847573#M6358</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/367365"&gt;tim18&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;P&gt;It looks liike you are trying to compile and link C++ code, but are using the icc C compiler. The C++ compiler is icpc, which will be capable of C++, and, to a limited extent, C.&lt;/P&gt;
&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Yes you are right, I used "icpc" instead but I still got errors about unresolved reference to MKL functions that I used. So I copied path to libraries from examples (LIB=...) and it worked finally. Thanks for your hints.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;D.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2008 12:43:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/C-C-Link-error-when-LAPACK-and-BLAS-is-used/m-p/847573#M6358</guid>
      <dc:creator>danesh_d</dc:creator>
      <dc:date>2008-11-17T12:43:08Z</dc:date>
    </item>
  </channel>
</rss>

