Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

error LNK2019: unresolved external symbol ippiMean_16u_C1MR

Nick_T_1
Beginner
420 Views

Dear IPP Users:

I got error LNK2019: unresolved external symbol ippiMean_16u_C1MR when I use ippiMean to calculate mean in a ROI with mask data. Here is my code:

#include "ippcv.h"

#include "ippi.h"
Ipp64f IppMean( const Ipp16u* pSrc, const Ipp8u* pMask, int roiWidth, int roiHeight ) 
{
	Ipp64f mean;
    Ipp16u* pDst = (Ipp16u*)malloc(sizeof(Ipp16u)*roiWidth*roiHeight);
    IppiSize roi = {roiWidth,roiHeight};
    ippiSet_16u_C1MR(1, pDst, roiWidth, roi, pMask,roiWidth );

    ippiMean_16u_C1MR( pSrc, roiWidth, pMask, roiWidth, roi, &mean);

	free(pDst);

	return mean;
}

I have

1. included the ipp/intel64/inlcude in my project

2. added ippcore.libippvm.libipps.libippi.lib in my input library in my project

3. linked  ipp/intel64/dll in my projection as addtional library.

I don't understand, and I think it should work. Anyone can give me some suggestions where I did wrong, and how I should correct it? Thanks.

Nick

0 Kudos
1 Reply
Gennady_F_Intel
Moderator
420 Views

please add ippcv.lib where these symbols are defined,

0 Kudos
Reply