I have recently written two sketches to be involved in a security system for a door. Both work perfectly independently but when I try to copy and paste segments of code from the keypad sketch to the RFID sketch and upload it to my arduino I get the simple 'Error Compiling' message. Personally I think its the two libraries (RFID and keypad) having conflicting code. If it is this how do I solve this? If not what is the problem?
It would be great to have a reply back soon as I am eager to build this system!
In file included from AddicoreRFID.ino:5:0:
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:14: error: duplicate 'unsigned' #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/utility/Key.h:45:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:23: error: multiple types in one declaration #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/utility/Key.h:45:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:23: error: declaration does not declare anything [-fpermissive] #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/utility/Key.h:45:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:14: error: duplicate 'unsigned' #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/Keypad.h:66:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:23: error: multiple types in one declaration #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/Keypad.h:66:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
C:\Users\Laptop\Documents\Arduino\libraries\AddicoreRFID/AddicoreRFID.h:52:23: error: declaration does not declare anything [-fpermissive] #define uint unsigned int
^
C:\Users\Laptop\Documents\Arduino\libraries\Keypad/Keypad.h:66:22: note: in expansion of macro 'uint'
typedef unsigned int uint;
^
Multiple libraries were found for "LiquidCrystal_I2C.h"
I don't know what library you are using to read the RFID device, but it looks like it was written by Microsoft, with all those stupid typedef statements giving new names to standard types. Get rid of that crap, and use standard types.