<?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 can't get simple ipp example to work in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913889#M14723</link>
    <description>I am completely new to using IPP and c++ and I need a hint on how to get a simple example to work. Below is the c++ code I would like to get working. Following that is the error message that I get. I thought all the environmental variable and such were set by including this in my .bashrc file: source /opt/intel/Compiler/11.1/064/ipp/em64t/tools/env/ippvarsem64t.sh&lt;BR /&gt;I have the Intel C++ 11.1 professional version for linux (rhel 5.2) installed and have checked that the ipp stuff works by running the scripts in perfsys.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated! Many thanks.&lt;BR /&gt;&lt;BR /&gt;______________________________________&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;void func_autocorr();&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt; ippStaticInit();&lt;BR /&gt; func_autocorr();&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void func_autocorr()&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt; Ipp32f pSrc[5] = {0.2, 3.1, 2.0, 1.2, -1.1};&lt;BR /&gt; const int dstLen = 10;&lt;BR /&gt; Ipp32f pDst[dstLen];&lt;BR /&gt; ippsAutoCorr_NormB_32f(pSrc, 5, pDst, dstLen);&lt;BR /&gt;}&lt;BR /&gt;_______________________________________&lt;BR /&gt;&lt;BR /&gt;Here is the error that I get:&lt;BR /&gt;&lt;BR /&gt;/tmp/icc56FrxX.o: In function `main':&lt;BR /&gt;walker.cpp:(.text+0x29): undefined reference to `ippStaticInit'&lt;BR /&gt;walker.cpp:(.text+0x69): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;/tmp/icc56FrxX.o: In function `func_autocorr()':&lt;BR /&gt;walker.cpp:(.text+0xc0): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 08 Jan 2010 21:07:46 GMT</pubDate>
    <dc:creator>Phil_Stimac</dc:creator>
    <dc:date>2010-01-08T21:07:46Z</dc:date>
    <item>
      <title>can't get simple ipp example to work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913889#M14723</link>
      <description>I am completely new to using IPP and c++ and I need a hint on how to get a simple example to work. Below is the c++ code I would like to get working. Following that is the error message that I get. I thought all the environmental variable and such were set by including this in my .bashrc file: source /opt/intel/Compiler/11.1/064/ipp/em64t/tools/env/ippvarsem64t.sh&lt;BR /&gt;I have the Intel C++ 11.1 professional version for linux (rhel 5.2) installed and have checked that the ipp stuff works by running the scripts in perfsys.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated! Many thanks.&lt;BR /&gt;&lt;BR /&gt;______________________________________&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;void func_autocorr();&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt; ippStaticInit();&lt;BR /&gt; func_autocorr();&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void func_autocorr()&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt; Ipp32f pSrc[5] = {0.2, 3.1, 2.0, 1.2, -1.1};&lt;BR /&gt; const int dstLen = 10;&lt;BR /&gt; Ipp32f pDst[dstLen];&lt;BR /&gt; ippsAutoCorr_NormB_32f(pSrc, 5, pDst, dstLen);&lt;BR /&gt;}&lt;BR /&gt;_______________________________________&lt;BR /&gt;&lt;BR /&gt;Here is the error that I get:&lt;BR /&gt;&lt;BR /&gt;/tmp/icc56FrxX.o: In function `main':&lt;BR /&gt;walker.cpp:(.text+0x29): undefined reference to `ippStaticInit'&lt;BR /&gt;walker.cpp:(.text+0x69): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;/tmp/icc56FrxX.o: In function `func_autocorr()':&lt;BR /&gt;walker.cpp:(.text+0xc0): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 21:07:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913889#M14723</guid>
      <dc:creator>Phil_Stimac</dc:creator>
      <dc:date>2010-01-08T21:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: can't get simple ipp example to work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913890#M14724</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/460179"&gt;Phil Stima&lt;EM&gt;c&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am completely new to using IPP and c++ and I need a hint on how to get a simple example to work. Below is the c++ code I would like to get working. Following that is the error message that I get. I thought all the environmental variable and such were set by including this in my .bashrc file: source /opt/intel/Compiler/11.1/064/ipp/em64t/tools/env/ippvarsem64t.sh&lt;BR /&gt;I have the Intel C++ 11.1 professional version for linux (rhel 5.2) installed and have checked that the ipp stuff works by running the scripts in perfsys.&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated! Many thanks.&lt;BR /&gt;&lt;BR /&gt;______________________________________&lt;BR /&gt;#include "ipp.h"&lt;BR /&gt;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;void func_autocorr();&lt;BR /&gt;&lt;BR /&gt;int main ()&lt;BR /&gt;{&lt;BR /&gt; ippStaticInit();&lt;BR /&gt; func_autocorr();&lt;BR /&gt; return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;void func_autocorr()&lt;BR /&gt;&lt;BR /&gt;{&lt;BR /&gt; Ipp32f pSrc[5] = {0.2, 3.1, 2.0, 1.2, -1.1};&lt;BR /&gt; const int dstLen = 10;&lt;BR /&gt; Ipp32f pDst[dstLen];&lt;BR /&gt; ippsAutoCorr_NormB_32f(pSrc, 5, pDst, dstLen);&lt;BR /&gt;}&lt;BR /&gt;_______________________________________&lt;BR /&gt;&lt;BR /&gt;Here is the error that I get:&lt;BR /&gt;&lt;BR /&gt;/tmp/icc56FrxX.o: In function `main':&lt;BR /&gt;walker.cpp:(.text+0x29): undefined reference to `ippStaticInit'&lt;BR /&gt;walker.cpp:(.text+0x69): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;/tmp/icc56FrxX.o: In function `func_autocorr()':&lt;BR /&gt;walker.cpp:(.text+0xc0): undefined reference to `ippsAutoCorr_NormB_32f'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;OK, we figured this out. I was not linking to the necessary libraries during compile time. Thanks.&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 23:00:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913890#M14724</guid>
      <dc:creator>Phil_Stimac</dc:creator>
      <dc:date>2010-01-08T23:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: can't get simple ipp example to work</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913891#M14725</link>
      <description>&lt;DIV style="margin:0px;"&gt;Phil,&lt;BR /&gt;&lt;BR /&gt;Glad you found the problem. I was about to write a reply when you posted yours. The part that was confusing me was a lack of error regarding ipp.h. I was thinking about the compiler, not the linker...&lt;BR /&gt;&lt;BR /&gt;Paul&lt;/DIV&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Jan 2010 23:52:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/can-t-get-simple-ipp-example-to-work/m-p/913891#M14725</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2010-01-08T23:52:31Z</dc:date>
    </item>
  </channel>
</rss>

