RE: Getting LINK2001 errors with 'Adduser.c'
From: Kevin Saye (KevinSaye_at_discussions.microsoft.com)
Date: 09/07/05
- Next message: Dani: "Re: Attaching private key to the existing certificate Please HELP"
- Previous message: OShah: "RE: Getting LINK2001 errors with 'Adduser.c'"
- In reply to: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 7 Sep 2005 06:41:03 -0700
Thanks, that did it!
"wolf777" wrote:
> You have to go to your project settings and add a linker dependency -
> crypt32.lib is required for Certificate Store functions. Don't forget to do
> that for both Debug and Release configuration.
>
>
> "Kevin Saye" wrote:
>
> > 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: Dani: "Re: Attaching private key to the existing certificate Please HELP"
- Previous message: OShah: "RE: Getting LINK2001 errors with 'Adduser.c'"
- In reply to: wolf777: "RE: Getting LINK2001 errors with 'Adduser.c'"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|