I am now implementing 3DES, I got the error like this:
The log:
Compiling 'ReadTag_new' for 'Arduino Uno PN532.cpp.o:In function PN532::example()' PN532.cpp:undefined reference to des3_set2key_dec' PN532.cpp:undefined reference to des3_set2key_enc' PN532.cpp:undefined reference to des3_crypt_cbc Error creating .elf
in which des3_set2key_dec
, des3_set2key_enc
, des3_cypt_cbc
are functions that are implemented in des.c
file and defined in des.h
file, and in PN532.cpp
file I also include des.h
file, and I am sure that I include the correct file since I can use struct
defined from that file.
I don't know what is wrong here? I search on Google and it talks about linker, like two files generate different .o
file, and they should be linked together, but I am not sure I am in that case