'Error Compiling' when trying to combine a keypad sketch and an RFID sketch

Hi,

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!

I have recently written two sketches to be involved in a security system for a door.

But you didn't think it sensible to post any of this code, or the actual error message(s)?

Good luck.

Sorry, here's the error message:

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Uno"

Build options changed, rebuilding all

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"

Used: C:\Users\Laptop\Documents\Arduino\libraries\LiquidCrystal

Not used: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal

Error compiling.

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.

Thanks, that seems to have resolved the problem, it's all working now.

Jimbob78:
Thanks, that seems to have resolved the problem, it's all working now.

I'm trying to do the same project, could you please elaborate how did u solve this problem?