[Pcsclite-muscle] unresolved symbols

Allen Curtis allen at criticalsoftwaresolutions.com
Mon Apr 3 17:27:47 PDT 2023


I am trying to compile the sample code provided for pcsclite. All the headers and libraries are installed. I can see that the following symbols are defined in the shared library but I get unresolved symbol messages when compiling. How do I resolve undefined symbols below.

Thanks

allen at css-XPS-13-9310:~/work/ideate/ntag424/IDM-ntag424/src$ gcc `pkg-config --libs libpcsclite` -lpthread ntag424_daemon.o -o aout
/usr/bin/ld: ntag424_daemon.o: in function `find_card_readers':
ntag424_daemon.c:(.text+0x40): undefined reference to `SCardListReaders'
/usr/bin/ld: ntag424_daemon.c:(.text+0x57): undefined reference to `pcsc_stringify_error'
/usr/bin/ld: ntag424_daemon.c:(.text+0x110): undefined reference to `SCardFreeMemory'
/usr/bin/ld: ntag424_daemon.c:(.text+0x147): undefined reference to `SCardFreeMemory'
/usr/bin/ld: ntag424_daemon.o: in function `main':
ntag424_daemon.c:(.text+0x1d2): undefined reference to `SCardEstablishContext'
/usr/bin/ld: ntag424_daemon.c:(.text+0x233): undefined reference to `SCardReleaseContext'
/usr/bin/ld: ntag424_daemon.c:(.text+0x243): undefined reference to `pcsc_stringify_error'
collect2: error: ld returned 1 exit status
-- 
Allen Curtis
Medical Device Architect
Critical Software Solutions, LLC




More information about the pcsclite-muscle mailing list