IPPCore functions in Custom IPP DLL

IPPCore functions in Custom IPP DLL

overspawn的头像


If I include functions from ippcore to custom DLL then I am getting errors. I am using IPP custom dll sample project provided with the library. Can't I useippcore in custom DLL?May I use both ippcore and ippcorel?

6 帖子 / 0 new
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项
Ying Song (Intel)的头像


What functions did you call from ippcore? The ippcore.lib is for dynamic linkage while the ippcorel.lib is used for static linkage.


Thanks,
Ying S
Intel IPP Support


overspawn的头像



The problem was that I couldn't include someippcore functions into FUNCLIST.H (as usual) without getting error messages.

But looks like it's not really required. I can just add ippcore functions to .DEF fileto export them

Community Admin的头像

Yes, you are right, you do not need to include ippCore functions to FUNCLIST.H file, because there are no processor specific optimization in this functions. To export thme in your custom DLL you need only place them into export.def file.


Regards,
Vladimir


hasenummer7的头像

I encountered a similar problem: I tried to build a custom dll, placed

ippiColorTwist32f_8u_C3R in *.def and funclist.h. The creation of the custom dll was successful. If I link against the custom dll (to use it in my application) I get


ColorConversionAlgorithm.obj : error LNK2019: unresolved external symbol _ippCoreGetStatusString@4 referenced in function "public: static long __cdecl ConvertYBR_FULLtoRGB(class CImage const &,CImage &)" (?ConvertYBR_FULLtoRGB@SAJABVCImage@2345@AAV62345@@Z)



Therefore I tried toexport ippCoreGetStatusString within the custom dll by placing it into *.def. In that case I get


IPPCustomd.def : error LNK2001: unresolved external symbol ippCoreGetCpuType IPPCustomd.lib : fatal error LNK1120: 1 unresolved externals


Adding the method to funclist.h gives even more errors.



Is there a way to overcome this problem? Currently I have no idea how to use my custom library.




vladimir-dudnik (Intel)的头像

Hi,

you need not to list functions from ippcore library in funclist.h or *.def files. You need only link static version of ippcore library to your custom DLL.

Regards,
Vladimir

登陆并发表评论。