Hi any NFC parties.
I’m starting on a project using a Photon and the Adafruit PN532 RFID/NFC Shield.
The very first thing I’ve tried is to simply include the Library using in the IDE using the command “#include <Adafruit_NFCShield_I2C.h>” and then simply verifying the code in the IDE.
A whole slew of errors are then generated as below
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:248:62: conflicting declaration 'typedef int int32_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:65:19: 'int32_t' has a previous declaration as 'typedef __int32_t int32_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:249:65: conflicting declaration 'typedef unsigned int uint32_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:66:20: 'uint32_t' has a previous declaration as 'typedef __uint32_t uint32_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:265:17: conflicting declaration 'typedef int16_t intptr_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:190:20: 'intptr_t' has a previous declaration as 'typedef __intptr_t intptr_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:270:18: conflicting declaration 'typedef uint16_t uintptr_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:191:21: 'uintptr_t' has a previous declaration as 'typedef __uintptr_t uintptr_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:336:16: conflicting declaration 'typedef int8_t int_fast8_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:95:30: 'int_fast8_t' has a previous declaration as 'typedef int int_fast8_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:341:17: conflicting declaration 'typedef uint8_t uint_fast8_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:96:31: 'uint_fast8_t' has a previous declaration as 'typedef unsigned int uint_fast8_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:346:17: conflicting declaration 'typedef int16_t int_fast16_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:105:31: 'int_fast16_t' has a previous declaration as 'typedef int int_fast16_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:351:18: conflicting declaration 'typedef uint16_t uint_fast16_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:106:32: 'uint_fast16_t' has a previous declaration as 'typedef unsigned int uint_fast16_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:356:17: conflicting declaration 'typedef int32_t int_fast32_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:115:31: 'int_fast32_t' has a previous declaration as 'typedef int int_fast32_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:361:18: conflicting declaration 'typedef uint32_t uint_fast32_t'
error
/usr/local/gcc-arm-embedded/arm-none-eabi/include/stdint.h:116:32: 'uint_fast32_t' has a previous declaration as 'typedef unsigned int uint_fast32_t'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:3743:7: redefinition of 'class Printable'
error
../wiring/inc/spark_wiring_printable.h:40:7: previous definition of 'class Printable'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:3757:7: redefinition of 'class Print'
error
../wiring/inc/spark_wiring_print.h:44:7: previous definition of 'class Print'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:3820:7: redefinition of 'class Stream'
error
../wiring/inc/spark_wiring_stream.h:44:7: previous definition of 'class Stream'
error
lib/Adafruit_NFCShield_I2C/Adafruit_NFCShield_I2C.h:3900:7: redefinition of 'class TwoWire'
error
../wiring/inc/spark_wiring_i2c.h:35:7: previous definition of 'class TwoWire'
error
../wiring/inc/spark_wiring_i2c.h:88:34: new declaration 'TwoWire __fetch_global_Wire()'
error
../wiring/inc/spark_wiring_i2c.h:89:10: ambiguates old declaration 'TwoWire& __fetch_global_Wire()'
Which is before I even write any code of my own!
Has anyone had experience of this issue or with the Adafruit shield in general?
Many thanks
Chris