Topic: [SOLVED] mingw32-make on Windows 7 x64 undefined reference undefined
Hi,
today my ACR122 reader arrived and I want to get it worked with libnfc. Im using W7 x64 and want to compile libnfc but I have some problems:
mingw32-make
Linking C shared library libnfc.dll
Creating library file: libnfc.dll.a
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0xb4): undefined reference to `SCardTransmit@28'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x1de): undefined reference to `SCardControl@28'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x24f): undefined reference to `SCardTransmit@28'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x309): undefined reference to `SCardDisconnect@8'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x349): undefined reference to `SCardReleaseContext@4'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x3c8): undefined reference to `SCardListReadersA@16'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x513): undefined reference to `SCardReleaseContext@4'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x549): undefined reference to `SCardEstablishContext@16'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x5a0): undefined reference to `SCardEstablishContext@16'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x5e9): undefined reference to `SCardReleaseContext@4'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x68b): undefined reference to `SCardTransmit@28'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x6ce): undefined reference to `SCardControl@28'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x750): undefined reference to `SCardConnectA@24'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x7eb): undefined reference to `SCardConnectA@24'
CMakeFiles\nfc.dir/objects.a(acr122.c.obj):acr122.c:(.text+0x830): undefined reference to `SCardEstablishContext@16'
CMakeFiles\nfc.dir/objects.a(pn53x_usb.c.obj):pn53x_usb.c:(.text+0x137): undefined reference to `usb_get_string_simple'
CMakeFiles\nfc.dir/objects.a(pn53x_usb.c.obj):pn53x_usb.c:(.text+0x16c): undefined reference to `usb_get_string_simple'
CMakeFiles\nfc.dir/objects.a(pn53x_usb.c.obj):pn53x_usb.c:(.text+0x27e): undefined reference to `usb_init'Any ideas what my problem is?