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

IPP 5.1 LNK2001

srodriguez
Beginner
411 Views
Hi,
Moving from IPP 4.x to IPP 5.1. Like other people in the forum I have linker errors.
I am using static libraries, so I link with:
ippscorel.lib
ippsemerged.lib
ippsmerged.lib

I have included all possible paths in library and include.
Using MSCV .Net 2005. C++

My libraries, who make calls to IPP functions compile fine. But my test application gives me the linker error:

1>Linking...
1>Utility_Mb_DLL.lib(BufferPool_Mb.obj) : error LNK2001: unresolved external symbol __imp__ippMalloc@4
1>Utility_Mb_DLL.lib(BufferPool_Mb.obj) : error LNK2001: unresolved external symbol __imp__ippFree@4
1>C:InnovativeExamplesAnalysisFilterDemoVc8ReleaseFilterDemo.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:InnovativeExamplesAnalysisFilterDemoVc8ReleaseBuildLog.htm"
1>FilterDemo - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Ok, if I then instead I link with:
ippcore.lib and ipps.ib, then I get a runtime error saying cannot find ippcore.dll

Please help. By the way, it is not intuitive to know which libs to link with. I read the other posts and the document LNK2001 and also did not provide me with a clear understanding.

Thank you.
God bless you,


Saul Rodriguez
Software Engineer

0 Kudos
3 Replies
srodriguez
Beginner
411 Views
Ok,
I actually am doing a Dynamic Linkage. In one of my libraries header files I have the follwing:

#pragma comment(lib, "ipps.lib")
#pragma comment(lib, "ippcore.lib")

Now when the application code which uses a library, which makes calls to ipps; opens, I get a run time error "ippcore.dll" not found....... I did a search in the Intel install directory and not saw an ippcore.dll anywhere. I saw am ippcopre-5.1.dll which I renamed and use (this is after seeral error trials). When I use the remanamed DLL, the program runs fine.

Is this normal ? is renaming a file is normal ?
Thank you.


God bless you,,
Saul Rodrguez

0 Kudos
srodriguez
Beginner
411 Views
Hi,
Never mind, it was a path problem. I was loading an old dll, I am not sure why it was loading it from there; anyway, when I renamed the old dll folder, now my application was able to load the correct DLL from the correct foler wihch made a call to the right IPP 5.1 DLL.

God bless you,


Saul Rodriguez
0 Kudos
Vladimir_Dudnik
Employee
411 Views

Hi Saul,

I'm glad you solve the issue:)

We are hoping you find many improvements in IPP 5.x against IPP 4.x. Please let us know both good and bad you may notice in IPP 5.1

Regards,
Vladimir

0 Kudos
Reply