MickGyver/DaemonBite-Arcade-Encoder

Compilation error: redefinition of 'class Gamepad_' - how to fix

Opened this issue · 0 comments

Get this error when compiling after installing HID-Project library.
To fix it, need to comment out the following in "documents/Arduino/libraries/HID-Project/src/HID-project.h"

#include "MultiReport/Gamepad.h"

e.g. to:
// #include "MultiReport/Gamepad.h"

Then I was able to compile successfully. Not sure if this is a changed behavior of Arduino IDE regarding priority of duplicate includes. This behavior happened on Arduino IDE 1.8.19 and 2.0.0-rc9.1.