Skip to content

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

Description

@alamone

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions