Where can I find winscard.lib for PC/SC programming in VC++ 2010 (Win seven)?

Ehsan Khodarahmi picture Ehsan Khodarahmi · Jul 30, 2012 · Viewed 7.3k times · Source

I want to write a PC/SC application using VC++ 2010 in win7 x32 environment.
My program fails to compile with some linking error like this:

error LNK2019: unresolved external symbol _SCardReleaseContext@4 referenced in function "void __cdecl pscs_app(void)" (?pscs_app@@YAXXZ)

I guess that I need to include winscard.lib into my project, but I can't find it anywhere on my system. So I think I need to install something like a SDK or developer pack, but I can't find any suitable information about it on the web, can anybody help me please?

Answer

Ehsan Khodarahmi picture Ehsan Khodarahmi · Oct 25, 2013

WINSCard.lib is included in microsoft windows SDK:

http://microsoft.com/en-us/download/details.aspx?id=8279