CryptAcquireCertificatePrivateKey link errors

Question:

I get these link errors:

CkBaseDbgSt.lib(Certificate.obj) : 
    error LNK2001: unresolved external symbol __imp__CertFreeCertificateChain@4
CkBaseDbgSt.lib(SChannel.obj) : 
    error LNK2001: unresolved external symbol __imp__CertFreeCertificateChain@4
CkBaseDbgSt.lib(Certificate.obj) : 
    error LNK2001: unresolved external symbol __imp__CertFreeCertificateChainEngine@4
CkBaseDbgSt.lib(Certificate.obj) : 
    error LNK2001: unresolved external symbol __imp__CertGetCertificateChain@32
CkBaseDbgSt.lib(SChannel.obj) : 
    error LNK2001: unresolved external symbol __imp__CertGetCertificateChain@32
CkBaseDbgSt.lib(Certificate.obj) : 
    error LNK2001: unresolved external symbol __imp__CertCreateCertificateChainEngine@8
CkBaseDbgSt.lib(Certificate.obj) : 
    error LNK2001: unresolved external symbol __imp__CryptAcquireCertificatePrivateKey@24
CkBaseDbgSt.lib(SChannel.obj) : 
    error LNK2001: unresolved external symbol __imp__CertVerifyCertificateChainPolicy@16
CkBaseDbgSt.lib(SChannel.obj) : 
    error LNK2001: unresolved external symbol __imp__CertFindChainInStore@24
Debug/Example.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.

Answer:

Here is a URL to one of the Microsoft Platform SDK functions causing the problem: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/seccrypto/security/cryptacquirecertificateprivatekey.asp

The link problem may be caused by having a Platform SDK library that is too out-of-date.