Do you know this error message?

Hi,

Im trying to get a program running, but this error appears after compiling.

In file included from /Users/user/Documents/Arduino/IR_Receiver_Module_Moped/IR_Receiver_Module_Moped.ino:4:0:
/Users/user/Documents/Arduino/libraries/IRremote-2.6.1/src/IRremote.h:183:16: error: expected unqualified-id before numeric constant
#define REPEAT 0xFFFFFFFF
^
/Users/benbehrendt/Documents/Arduino/libraries/DFPlayerMini_Fast/src/DFPlayerMini_Fast.h:83:16: note: in expansion of macro 'REPEAT'
const uint8_t REPEAT = 0;

^~~~~~
exit status 1

const uint8_t 0xFFFFFFFF = 0; Doesn't make any sense, does it?

Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the DFPlayerMini_Fast library from. Or if you installed it using Library Manger (Sketch > Include Library > Manage Libraries in the Arduino IDE or Libraries > Library Manager in the Arduino Web Editor) then say so and state the full name of the library.

I used this one.

I think it does not work with the second library I use, which is an IRreciever library: "IRremote-2.6.1"

you know why?

TheMemberFormerlyKnownAsAWOL:
const uint8_t  0xFFFFFFFF        = 0; Doesn't make any sense, does it?

I don't know what's the point of this error

The problem is that the IRremote library defines a macro named REPEAT. But the DFPlayerMini_Fast library has a variable named REPEAT. So there is a name collision between the two libraries. Fortunately, the fix is easy.

At the top of your sketch, you have some code that looks something like this:

#include <IRremote.h>
#include <DFPlayerMini_Fast.h>

You only need to change the order so the #include directive for the DFPlayerMini_Fast library comes before the one for the IRremote library:

#include <DFPlayerMini_Fast.h>
#include <IRremote.h>

pert:
The problem is that the IRremote library defines a macro named REPEAT. But the DFPlayerMini_Fast library has a variable named REPEAT. So there is a name collision between the two libraries. Fortunately, the fix is easy.

At the top of your sketch, you have some code that looks something like this:

#include <IRremote.h>

#include <DFPlayerMini_Fast.h>




You only need to change the order so the #include directive for the DFPlayerMini_Fast library comes before the one for the IRremote library:


#include <DFPlayerMini_Fast.h>
#include <IRremote.h>

WOOWWW it workssss
Thank you soo much <3
u are the BEST !!!

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

ben_the_beginner, pert is one of the smartest ones in here!