<?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: Simple player VS 2005 static linking problem in Intel® Integrated Performance Primitives</title>
    <link>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862682#M7931</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That helped, thanx. &lt;BR /&gt;About include files, i will use #undef instead of editing files, but that could lead to a problem if some of the header files call that function before my redefinition. It would be a good idea to put definition for static linkage in ippdefs.h&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Sven&lt;BR /&gt;</description>
    <pubDate>Tue, 08 Jul 2008 08:37:18 GMT</pubDate>
    <dc:creator>gossamer</dc:creator>
    <dc:date>2008-07-08T08:37:18Z</dc:date>
    <item>
      <title>Simple player VS 2005 static linking problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862680#M7929</link>
      <description>I'm trying to convert Simple_player to use static library linkage (visual studio 2005) and i have problem with two projects.&lt;BR /&gt;&lt;BR /&gt;Every lib from simple_player was converted to single project file (h264_dec, vcl_spl, mp3_dec ...), so i have rebuild all projects to use w7_ipp* version of procedures. Also, i've include all ipp*emerged.lib and ippcorel.lib in main project. So when i rebuild those projects they generate .lib files and doesnt produce any error messages. But when i try to rebuild main project (simple_player) i get 4 unresolved external error messages.&lt;BR /&gt;&lt;BR /&gt;jpeg.lib(jpegdec.obj) : error LNK2001: unresolved external symbol _w7_ippMalloc@4&lt;BR /&gt;jpeg.lib(jpegdec.obj) : error LNK2001: unresolved external symbol _w7_ippFree@4&lt;BR /&gt;jpeg.lib(decqtbl.obj) : error LNK2001: unresolved external symbol _w7_ippAlignPtr@8&lt;BR /&gt;vc1_dec.lib(umc_vc1_dec_seq.obj) : error LNK2001: unresolved external symbol _w7_ippStaticInit@0&lt;BR /&gt;&lt;BR /&gt;I've put definitons for IPPCALL at begining of jpegdec.cpp file and slightly redefined ippdefs.h file as&lt;BR /&gt;...&lt;BR /&gt; #if defined (STATIC_PROC_W7)&lt;BR /&gt; #define IPPAPI(type,name,arg) extern type __STDCALL w7_##name arg;&lt;BR /&gt; #else&lt;BR /&gt; #define IPPAPI( type,name,arg ) extern type __STDCALL name arg;&lt;BR /&gt; #endif&lt;BR /&gt; #endif&lt;BR /&gt;...&lt;BR /&gt;So i use preprocessor definition STATIC_PROC_W7 in project configuration. &lt;BR /&gt;Next thing i was trying to do:&lt;BR /&gt;Because i couldnt find w7_ippMalloc in ippcorel.lib file i've redefined procedures calls as:&lt;BR /&gt;//----------------------&lt;BR /&gt;#define w7_ippMalloc ippMalloc&lt;BR /&gt;#define w7_ippFree ippFree&lt;BR /&gt;&lt;BR /&gt;#define OWN_IPPAPI( type,name,arg ) extern type __STDCALL name arg;&lt;BR /&gt;OWN_IPPAPI( void*,ippMalloc, (int length) )&lt;BR /&gt;OWN_IPPAPI( void, ippFree, (void* ptr) )&lt;BR /&gt;//--------------------&lt;BR /&gt;&lt;BR /&gt;I've use that because i didnt want to mess with other w7_ipp* functions calls (as linker havent complained at them) .. now IPPCALL definition change ippMalloc to w7_ippMalloc which is changed back to ippMalloc by my definition. So in the end it produces:&lt;BR /&gt;&lt;BR /&gt;extern void * __stdcall ippMalloc(int)&lt;BR /&gt;again, compiling jpeg project didnt produce any errors, but compiling main project produces following&lt;BR /&gt;jpeg.lib(jpegdec.obj) : error LNK2001: unresolved external symbol "void * __stdcall ippMalloc(int)" (?ippMalloc@@YGPAXH@Z)&lt;BR /&gt;jpeg.lib(jpegdec.obj) : error LNK2001: unresolved external symbol "void __stdcall ippFree(void *)" (?ippFree@@YGXPAX@Z)&lt;BR /&gt;...&lt;BR /&gt;I have no idea what else to try, hope You could help me figure this out.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sincerely,&lt;BR /&gt; Sven &lt;BR /&gt;</description>
      <pubDate>Sat, 05 Jul 2008 10:43:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862680#M7929</guid>
      <dc:creator>gossamer</dc:creator>
      <dc:date>2008-07-05T10:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simple player VS 2005 static linking problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862681#M7930</link>
      <description>&lt;P&gt;You may add extern "C" ... to the declartions to make ippMalloc and ippFree C functions.&lt;/P&gt;
&lt;P&gt;In general, the include files provided in Intel IPP are not subject to modify.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Ying &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2008 06:47:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862681#M7930</guid>
      <dc:creator>Ying_S_Intel</dc:creator>
      <dc:date>2008-07-08T06:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple player VS 2005 static linking problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862682#M7931</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;That helped, thanx. &lt;BR /&gt;About include files, i will use #undef instead of editing files, but that could lead to a problem if some of the header files call that function before my redefinition. It would be a good idea to put definition for static linkage in ippdefs.h&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Sven&lt;BR /&gt;</description>
      <pubDate>Tue, 08 Jul 2008 08:37:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862682#M7931</guid>
      <dc:creator>gossamer</dc:creator>
      <dc:date>2008-07-08T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Simple player VS 2005 static linking problem</title>
      <link>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862683#M7932</link>
      <description>&lt;P&gt;&lt;FONT face="Arial"&gt;Simply, you can &lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT face="Arial"&gt;include ipp_w7.h before ipp.h.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="Arial"&gt;Thanks,&lt;BR /&gt;Ying &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2008 21:02:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Integrated-Performance/Simple-player-VS-2005-static-linking-problem/m-p/862683#M7932</guid>
      <dc:creator>Ying_S_Intel</dc:creator>
      <dc:date>2008-07-09T21:02:22Z</dc:date>
    </item>
  </channel>
</rss>

