Getting LINK2001 errors with 'Adduser.c'
From: Kevin Saye (KevinSaye_at_discussions.microsoft.com)
Date: 09/07/05
- Next message: Richard Ward: "Re: Using SPNEGO/SSPI in SMB (Extended Security)"
- Previous message: jreddy: "Decrypt fails"
- Next in thread: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Reply: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 6 Sep 2005 19:15:02 -0700
I am trying to compile the example from
'http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/adding_users_to_an_encrypted_file.asp' and I am getting the error:
Deleting intermediate files and output files for project 'Adduser - Win32
Debug'.
--------------------Configuration: Adduser - Win32 Debug--------------------
Compiling...
Adduser.c
Linking...
Adduser.obj : error LNK2001: unresolved external symbol
__imp__CertCloseStore@8
Adduser.obj : error LNK2001: unresolved external symbol
__imp__CertFreeCertificateContext@4
Adduser.obj : error LNK2001: unresolved external symbol
__imp__AddUsersToEncryptedFile@8
Adduser.obj : error LNK2001: unresolved external symbol
__imp__CertFindCertificateInStore@24
Adduser.obj : error LNK2001: unresolved external symbol
__imp__CertOpenSystemStoreW@8
Adduser.obj : error LNK2001: unresolved external symbol
__imp__LookupAccountNameW@28
Debug/Adduser.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
Adduser.exe - 7 error(s), 0 warning(s)
I have installed the "Windows Server 2003 SP1 SDK" and I have modified the
(lib and include) directories in VC++ 6.0 to include "c:\Program
Files\Microsoft Platform SDK\Lib" and "c:\Program Files\Microsoft Platform
SDK\Include" . I can compile the file, just not link it. Any hints out
there?
Kevin
- Next message: Richard Ward: "Re: Using SPNEGO/SSPI in SMB (Extended Security)"
- Previous message: jreddy: "Decrypt fails"
- Next in thread: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Reply: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|