NFC Shield getting started

I am having problems with the NFC Shield. I properly attached the NFC Shield to my Arduino Uno, downloaded the PN532 library and used the quick start demo ( … Start_Demo) to get started. When I verify the code, I get this error:

no matching function call to ‘PN532::PN532(int, int, int, int)’

So it is already failing on this line:

PN532 nfc(SCK, MISO, MOSI, SS);

Why? Is the import wrong? The libraries subdirectory was created, in there I placed the PN532 directory with both the .h and .cpp file.


Your lib is wrong,please download this lib on our wiki resourse:Arduino 1.0 Lib compatible with MEGA for NFC Shield.