DaemonBite-Arcade-Encoder icon indicating copy to clipboard operation
DaemonBite-Arcade-Encoder copied to clipboard

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

Open alamone opened this issue 3 years ago • 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.

alamone avatar Aug 07 '22 08:08 alamone