OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
[Muscle] pcsc/windscard.. question.

From: Naveen Mukkelli (Naveenworldsmart.com.au)
Date: Mon Apr 04 2005 - 00:40:28 CDT


Hi,

 

I'm trying to write a sample application for smart cards using
"pcsc-lite" and "winscard".

 

When I ran "pcscd" and inserted a smart card it seems that it is reading
from the card.

For example,

 

>$ pcscd -f -d stdout.. I'm getting some output from the card.

 

However

 

1. When I tried to run "pcsc-demo".. I'm getting the message,

"SCardEstablishContext: Cannot connect to Resource Manager".

What could be the problem.

 

2. How I can compile my 'C' code. I mean, when I compile the code
in the following way,

"gcc -g myapp.c -o myapp",

I'm getting following type of erros,

"/root/tmp/ccoH3Vmt.o(.text+0xda): In function main:

:undefined reference to 'SCardExtablishContext'.

 

What does this mean, did I forget to link any library?

 

Kindly let me know.

 

Cheers,

 

Naveen.

 

_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle