I am working on a project which includes Arduino and a fingerprint scanner. It is completely based on embedded system. But then, I have downloaded a library for the fingerprint scanner. When I run the program I get an error which maps to the cpp file of the library file. See below to see the error and the library file.
Error
FPS_GT511C3\FPS_GT511C3.c.cpp.o: In function Command_Packet::GetPacketBytes()': C:\Users\Dipti\Documents\Arduino\libraries\FPS_GT511C3/FPS_GT511C3.c.cpp:17: undefined reference tooperator new[](unsigned int)' FPS_GT511C3\FPS_GT511C3.c.cpp.o: In function FPS_GT511C3::GetResponse()': C:\Users\Dipti\Documents\Arduino\libraries\FPS_GT511C3/FPS_GT511C3.c.cpp:735: undefined reference tooperator new[](unsigned int)' collect2.exe: error: ld returned 1 exit status
Library File (CPP)
byte* packetbytes= new byte[12];
byte* resp = new byte[12];
.c.cpp
would confuse things, it they're C++ it'd be more conventional if they were just.cpp
.typedef
forbyte
somewhere in scope at that location?byte
is not a fundamental type and is usually typedef'ed to char or unsigned char.