<?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: undefined reference error in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/undefined-reference-error/m-p/913823#M14718</link>
    <description>&lt;P&gt;Hello Milan,&lt;/P&gt;
&lt;P&gt;You need to link both merged and emerged libraries, where emerged libs are static dispatchers.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2006 03:05:43 GMT</pubDate>
    <dc:creator>Vladimir_Dudnik</dc:creator>
    <dc:date>2006-08-18T03:05:43Z</dc:date>
    <item>
      <title>undefined reference error</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/undefined-reference-error/m-p/913822#M14717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have some problems linking the following simple program with IPP 5.1.1 for Linux:&lt;/P&gt;
&lt;P&gt;#include "ipp.h"&lt;/P&gt;
&lt;P&gt;int main(int argc, char *argv[])&lt;BR /&gt;{&lt;BR /&gt; int SrcStepBytes;&lt;BR /&gt; Ipp8u *pSrc = ippiMalloc_8u_C1(768, 576, &amp;amp;SrcStepBytes);&lt;BR /&gt; int DstStepBytes;&lt;BR /&gt; Ipp8u *pDst = ippiMalloc_8u_C1(768, 576, &amp;amp;DstStepBytes);&lt;BR /&gt; IppiSize Size = {768, 576};&lt;BR /&gt; ippiCopy_8u_C1R(pSrc, SrcStepBytes, pDst, DstStepBytes, Size);&lt;/P&gt;
&lt;P&gt; ippiFree(pSrc);&lt;BR /&gt; ippiFree(pDst);&lt;/P&gt;
&lt;P&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I compiled the program with the following:&lt;/P&gt;
&lt;P&gt;g++ TestIPP.cc -I /opt/intel/ipp/5.1/ia32/include/ -L /opt/intel/ipp/5.1/ia32/lib/ -lippimerged -lippcore -O2 -o TestIPP&lt;/P&gt;
&lt;P&gt;And I got the following errors during linking:&lt;/P&gt;
&lt;P&gt;/tmp/cc1XpyJm.o: In function `main':&lt;BR /&gt;/tmp/cc1XpyJm.o(.text+0x17): undefined reference to `ippiMalloc_8u_C1'&lt;BR /&gt;/tmp/cc1XpyJm.o(.text+0x2f): undefined reference to `ippiMalloc_8u_C1'&lt;BR /&gt;/tmp/cc1XpyJm.o(.text+0x4d): undefined reference to `ippiCopy_8u_C1R'&lt;BR /&gt;/tmp/cc1XpyJm.o(.text+0x56): undefined reference to `ippiFree'&lt;BR /&gt;/tmp/cc1XpyJm.o(.text+0x5e): undefined reference to `ippiFree'&lt;BR /&gt;collect2: ld returned 1 exit status&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I have already defined the following environment variables before linking:&lt;/P&gt;
&lt;P&gt;LD_LIBRARY_PATH=/opt/intel/ipp/5.1/ia32/sharedlib:&lt;BR /&gt;IPPROOT=/opt/intel/ipp/5.1/ia32&lt;BR /&gt;INCLUDE=/opt/intel/ipp/5.1/ia32/include:&lt;/P&gt;
&lt;P&gt;I have also downloaded some sample codes from the sample home page and they worked ok. Am I still missing something?&lt;/P&gt;
&lt;P&gt;The OS I am using is RedHat 7.3.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Milan.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2006 13:02:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/undefined-reference-error/m-p/913822#M14717</guid>
      <dc:creator>tsdmilan</dc:creator>
      <dc:date>2006-08-17T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: undefined reference error</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/undefined-reference-error/m-p/913823#M14718</link>
      <description>&lt;P&gt;Hello Milan,&lt;/P&gt;
&lt;P&gt;You need to link both merged and emerged libraries, where emerged libs are static dispatchers.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt; Vladimir&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2006 03:05:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/undefined-reference-error/m-p/913823#M14718</guid>
      <dc:creator>Vladimir_Dudnik</dc:creator>
      <dc:date>2006-08-18T03:05:43Z</dc:date>
    </item>
  </channel>
</rss>

