Getting LINK2001 errors with 'Adduser.c'

From: Kevin Saye (KevinSaye_at_discussions.microsoft.com)
Date: 09/07/05


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



Relevant Pages

  • Re: Going From MFC to .NET
    ... Now the problem is that when I try to compile a debug or release vr. ... format; library ignored ... HardDriveTest.obj: error LNK2001: unresolved external symbol "unsigned ...
    (microsoft.public.vc.mfc)
  • Re: Compiling CERDISP.exe
    ... At his point I get linking errors. ... directory for files to compile. ... cerdisp.obj: error LNK2019: unresolved external symbol GetMessageW ... DispatchMessageW referenced in function WinMain ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Dont want Intermediate language
    ... complie my code using this.. ... just compile it as a Win32 application and it won't be ... main.obj: error LNK2019: unresolved external symbol ... I do have the platfor SDK installed.. ...
    (microsoft.public.vc.language)
  • problem of link
    ... I try to compile my mex file, but there are link error. ... encore.obj: error LNK2001: unresolved external symbol ...
    (comp.soft-sys.matlab)
  • Re: enabled ActiveSync error!
    ... I designed template choose "tiny kernel" when create this platform, ... coredll.def: error LNK2001: unresolved external symbol lineInitialize ...
    (microsoft.public.windowsce.platbuilder)

Quantcast