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

Problem to use cryptograph lib...LNK 2001...T.T

jjhan
Beginner
681 Views

HI~

I made the code using IPP package and cryptograph package.

I installed both packages on my computer.

I wrote the example code of DES.

When I compiled it, I found LNK 2001.

I already set environment variable.(System and VC 2005, include path, lib path, add lib dependency...etc...)

I don't know the reason.

The error message is like that...

'1>MFCDlg.obj : error LNK2001: unresolved external symbol _ippStaticInit@0
1>MFCDlg.obj : error LNK2001: unresolved external symbol _ippsDESGetSize@4
1>MFCDlg.obj : error LNK2001: unresolved external symbol _ippsDESInit@8
1>MFCDlg.obj : error LNK2001: unresolved external symbol _ippsDESEncryptECB@20
1>MFCDlg.obj : error LNK2001: unresolved external symbol _ippsDESDecryptECB@20
1>D:userjjhanIntelTestMFCReleaseMFC.exe : fatal error LNK1120: 5 unresolved externals
1>Build log was saved at "file://d:userjjhanIntelTestMFCMFCReleaseBuildLog.htm"
1>MFC - 6 error(s), 4 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========='

My system environment is 'intel xeon', 'Visual studio 2005'...

Please, anyone tell me the solution...

p.s. my ipp package didn't have ippmerge.lib...

Maythat be the reason??

0 Kudos
5 Replies
Vladimir_Dudnik
Employee
681 Views

Hello,

as I see your linker did not find functions from IPP crypto library. Please be sure you specified ippcp libraries in your linker settings.

Please also note that IPP crypto package is separate distribution which you should register and download separately from the main IPP package.

Additional note, *merge libraries, which are IPP static libraries, are availbale only in commercial version of IPP. They are not part of IPP evaluation package. Of course you may use IPP dynamic libraries for evaluation purposes.

Regards,
Vladimir

0 Kudos
jjhan
Beginner
681 Views

Thanks for your reply...

As I mention it, I already set up lib path.

Of course, I installed the IPP package and the Crypto package which are downloaded in IPP main page.

I think that there is another problem what I don't know.

0 Kudos
Vladimir_Dudnik
Employee
681 Views

Please also check that you specfied which libraries to link intoyour application. Yo need to cpecify ippcp.lib (in case you link with IPP DLL)

Vladimir

0 Kudos
jjhan
Beginner
681 Views

Thanks Vladimir...

ippcp.lib is in stublib folder.

Of course, I already setthe path and bin folder's(There are dll files)path in my application.

but, I couldn't complie my project.

So, I tried that I moved dll files in stublib folder.

The result was like above result.

I'm sure that all path are correct.

But, there is the problem about LNK 2001 and I don't know the reason.

T.T...

0 Kudos
Vladimir_Dudnik
Employee
681 Views

What I mean is that you need to explicitely set library name to linker. This is additional to setting the path where linker will look for the library.

Vladimir

0 Kudos
Reply