【发布时间】:2017-09-04 08:54:27
【问题描述】:
我正在尝试通过用 c++ 程序替换其中的一部分来提高我的 matlab 代码性能,为此我正在使用英特尔的 ipp 库。尝试编译和链接程序时会出现问题。我收到了附加错误。
我正在使用 Matlab2016a 64 位、Windows 10 64 位并使用“Microsoft Visual C++ 2015 Professional”进行构建。
谢谢!
纳达夫
mex nesta.cpp -L'C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.2.187\windows\ipp\lib\intel64_win' -I'C:\Program Files (x86)\IntelSWTools\ compilers_and_libraries_2017.2.187\windows\ipp\include' 使用“Microsoft Visual C++ 2015 Professional”构建。 使用 mex 时出错 创建库 nesta.lib 和对象 nesta.exp nesta.obj:错误 LNK2019:未解析的外部符号 ippsAdd_32fc_I 在函数“int __cdecl nesta(struct Ipp32fc) 中引用 *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsAdd_32fc *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsMulC_32fc *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误 LNK2019:函数“void __cdecl”中引用的未解析外部符号 ippsMul_32fc perform_L1_constraint(struct Ipp32fc *,float,struct Ipp32fc *,float *)" (?perform_L1_constraint@@YAXPEAUIpp32fc@@M0PEAM@Z) nesta.obj:错误 LNK2019:未解析的外部符号 ippsSub_32fc_I 在函数“int __cdecl nesta(struct Ipp32fc) 中引用 *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsSub_32fc *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误 LNK2019:函数“void __cdecl”中引用的未解析外部符号 ippsDiv_32fc_I perform_L1_constraint(struct Ipp32fc *,float,struct Ipp32fc *,float *)" (?perform_L1_constraint@@YAXPEAUIpp32fc@@M0PEAM@Z) nesta.obj:错误 LNK2019:函数“void __cdecl”中引用的未解析外部符号 ippsConj_32fc perform_L1_constraint(struct Ipp32fc *,float,struct Ipp32fc *,float *)" (?perform_L1_constraint@@YAXPEAUIpp32fc@@M0PEAM@Z) nesta.obj:错误 LNK2019:函数“void __cdecl”中引用的未解析的外部符号 ippsSum_32fc perform_L1_constraint(struct Ipp32fc *,float,struct Ipp32fc *,float *)" (?perform_L1_constraint@@YAXPEAUIpp32fc@@M0PEAM@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsMax_32f *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误 LNK2019:函数“void __cdecl”中引用的未解析的外部符号 ippsNorm_L2_32fc64f perform_L1_constraint(struct Ipp32fc *,float,struct Ipp32fc *,float *)" (?perform_L1_constraint@@YAXPEAUIpp32fc@@M0PEAM@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsDFTInit_C_32fc *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.obj:错误 LNK2019:函数“void __cdecl A(struct Ipp32fc) 中引用的未解析的外部符号 ippsDFTFwd_CToC_32fc *,struct Ipp32fc *,struct DFTSpec_C_32fc *)" (?A@@YAXPEAUIpp32fc@@0PEAUDFTSpec_C_32fc@@@Z) nesta.obj:错误 LNK2019:函数“void __cdecl At(struct Ipp32fc) 中引用的未解析的外部符号 ippsDFTInv_CToC_32fc *,struct Ipp32fc *,struct DFTSpec_C_32fc *)" (?At@@YAXPEAUIpp32fc@@0PEAUDFTSpec_C_32fc@@@Z) nesta.obj:错误LNK2019:函数“int __cdecl nesta(struct Ipp32fc)中引用的未解析的外部符号ippsAbs_32fc_A11 *,struct Ipp32fc *)" (?nesta@@YAHPEAUIpp32fc@@0@Z) nesta.mexw64 : 致命错误 LNK1120: 15 unresolved externals`在此处输入代码
【问题讨论】:
标签: c++ matlab mex lnk2019 intel-ipp