If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > crdspec_card.obj : error LNK2019: unresolved external symbol _SCardReleaseContext

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-03, 18:02
anilpanamana anilpanamana is offline
Registered User
 
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
Reply With Quote
  #2 (permalink)  
Old 12-10-03, 03:53
rbshuresh rbshuresh is offline
Registered User
 
Join Date: Dec 2003
Posts: 1
Hi Anil,

Please include the scard.lib also in the Link option

-Suresh
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On