fatal error: memory.h: No such file or directory

Hi,

I'm trying to compile a sketch with the code below, but always get the error message below. Any ideas for how to solve this would be really appreciated. I'm completely stuck.

C:\Users\Dad\Documents\Arduino\libraries\API_UHF\Reader.cpp:5:10: fatal error: memory.h: No such file or directory
#include <memory.h>
^~~~~~~~~~
compilation terminated.
exit status 1
Error compiling for board Arduino Uno.

#include <UHFRFID.h>
void setup() {
}

void loop() {
}

UHFRFID.h is a library for an RFID chip to go with my Arduino UNO. The RFID chip is a UHF (Ultra High Frequency) RFID chip, the libraries are shown in dropbox here: [API](Dropbox - API_UHF RFIDV1.5.5 English.zip - Simplify your life RFIDV1.5.5 english.zip?dl=0).

The Arduino libraries folder currently contains:
API_UHF\Reader.cpp
API_UHF\UHFRFID.dll
API_UHF\UHFRFID.h
API_UHF\UHFRFID.lib
Things I have already tried having googled this error message:

  • changing the reader file type from .cpp to .ino, which gave a different message, objecting to the formatting of each line with
declspec(dllexport)

in it the UHFRFID.h file

-deleting

#include <memory.h>

from the Reader.cpp file, this resulted in the next line of code

#include <Windows.h>

not working, with the same error message, just that "#include <memory.h>" was swapped out for
"#include <windows.h>"

Any help would be most welcome.
Kind regards,
Xam1975

xam1975:
UHFRFID.h is a library for an RFID chip to go with my Arduino UNO.

Please post a link to where you downloaded this library from.

At a glance, it appears that this is not a library to run on a microcontroller, but rather something for a PC.

I got the link for the [API](http://"Dropbox - API_UHF RFIDV1.5.5 English.zip - Simplify your life RFIDV1.5.5" english.zip?dl=0) in an email from the provider of the chip. I renamed the API from "API_UHF RFIDV1.5.5 English" to "API_UHF" so that it was in ASCII. I then unzipped the API and moved it under the libraries folder in Arduino, so that I could find "API_UHF" under "contributed libraries" in the Arduino Software. When I clicked on it, I got the line of code:

#include <UHFRFID.h>

Thank you for your quick reply.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.