OSEC

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

Martin.Fuehrlingeromnikey.com
Date: Mon Apr 04 2005 - 01:48:56 CDT


> >$ pcscd –f –d stdout.. I’m getting some output from the card.

>1. When I tried to run “pcsc-demo”.. I’m getting the message,
> “SCardEstablishContext: Cannot connect to Resource Manager”.
> What could be the problem.

Did you have started the pcscd ? You need to start pcscd. Cannot connect to
ResourceManager indicates a not running pcscd.
Try: pcscd -f -d stdout & pcsc-demo

or run pcsc-demo in a seperate konsole.

> 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?

Yes you need to link -libpcsclite

---
Mit freundlichen Grüßen
Best regards,

Martin Führlinger
Software Developer

OMNIKEY
Ferihumerstrasse 13
A-4040 Linz
Austria

Tel +43 (0) 732 / 602220 - 35
E-Mail martin.fuehrlingeromnikey.com
Web www.omnikey.com

                                                                           
             "Naveen Mukkelli"
             <Naveenworldsmar
             t.com.au> An
             Gesendet von: <musclelists.musclecard.com>
             muscle-bouncesli Kopie
             sts.musclecard.co
             m Thema
                                        [Muscle] pcsc/windscard..
                                        question.
             04.04.2005 07:40
                                                                           
                                                                           
              Bitte antworten
                    an
                  MUSCLE
             <musclelists.mus
               clecard.com>
                                                                           
                                                                           

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

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