title: Developing with libpcsclite error compiling (undefined)
body: <p>Im trying to test a sample PCSC application on Linux that I've seen on the web <a href="http://ludovicrousseau.blogspot.com.es/2010/04/pcsc-sample-in-c.html" rel="nofollow">http://ludovicrousseau.blogspot.com.es/2010/04/pcsc-sample-in-c.html</a></p>
  
  <p>This application use libpsclite library that I installed with apptitude install libpcsclite-dev.</p>
  
  <p>Why I get references undefined error when compile it?</p>
  
  <p>gcc -I/usr/include/PCSC -lpcsclite sample.c -o sample/tmp/ccY4bNdm.o: En la función <code>main':
  sample.c:(.text+0x9b): referencia a</code>SCardEstablishContext' sin definir
  sample.c:(.text+0xb2): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0xf8): referencia a</code>SCardListReaders' sin definir
  sample.c:(.text+0x10f): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x171): referencia a</code>SCardConnect' sin definir
  sample.c:(.text+0x188): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x1b7): referencia a</code>g_rgSCardT0Pci' sin definir
  sample.c:(.text+0x1bd): referencia a <code>g_rgSCardT0Pci' sin definir
  sample.c:(.text+0x1cc): referencia a</code>g_rgSCardT1Pci' sin definir
  sample.c:(.text+0x1d2): referencia a <code>g_rgSCardT1Pci' sin definir
  sample.c:(.text+0x21f): referencia a</code>SCardTransmit' sin definir
  sample.c:(.text+0x236): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x2e5): referencia a</code>SCardTransmit' sin definir
  sample.c:(.text+0x2fc): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x37b): referencia a</code>SCardDisconnect' sin definir
  sample.c:(.text+0x392): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x3c0): referencia a</code>SCardFreeMemory' sin definir
  sample.c:(.text+0x3d7): referencia a <code>pcsc_stringify_error' sin definir
  sample.c:(.text+0x3fa): referencia a</code>SCardReleaseContext' sin definir
  sample.c:(.text+0x411): referencia a `pcsc_stringify_error' sin definir
  collect2: error: ld returned 1 exit status</p>
  
  <p>Thanks for any help received!!</p>