Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Posts
    6

    Unhappy crdspec_card.obj : error LNK2019: unresolved external symbol _SCardReleaseContext

    Hi
    I am trying to develop an interface for pocket pc , that reads certificates from smart card [ using smartcard reader SCR 201] .
    I got a smaple application from microsoft, but when i tried to build , it gives the following error messages

    rdspec_card.obj : error LNK2019: unresolved external symbol _SCardReleaseContext referenced in function "private: bool __cdecl CCard::AttachToCard(void)" (?AttachToCard@CCard@@AAA_NXZ)
    crdspec_card.obj : error LNK2019: unresolved external symbol _SCardConnectW referenced in function "private: bool __cdecl CCard::AttachToCard(void)" (?AttachToCard@CCard@@AAA_NXZ)
    crdspec_card.obj : error LNK2019: unresolved external symbol _SCardEstablishContext referenced in function "private: bool __cdecl CCard::AttachToCard(void)" (?AttachToCard@CCard@@AAA_NXZ)
    crdspec_card.obj : error LNK2019: unresolved external symbol _SCardDisconnect referenced in function "private: void __cdecl CCard::ReleaseCard(void)" (?ReleaseCard@CCard@@AAAXXZ)
    SH3Dbg/ServiceProvider.dll : fatal error LNK1120: 4 unresolved externals
    Error executing link.exe.

    ServiceProvider.dll - 5 error(s), 0 warning(s)

    I am using eVC 4 . Why am i getting these error messages

    my link setting are

    commctrl.lib coredll.lib winscard.lib winsock.lib /nologo /base:"0x00100000" /stack:0x10000,0x1000 /entry:"_DllMainCRTStartup" /dll /incremental:yes /pdb:"SH3Dbg/ServiceProvider.pdb" /debug /nodefaultlib:"$(CENoDefaultLib)" /out:"SH3Dbg/ServiceProvider.dll" /implib:"SH3Dbg/ServiceProvider.lib" /subsystem:$(CESubsystem) /MACHINEH3 /align:4096

    i would apreciate if anyone could help me
    Thanks in advance
    Anil

  2. #2
    Join Date
    Dec 2003
    Posts
    1
    Hi Anil,

    Please include the scard.lib also in the Link option

    -Suresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •