This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue when creating a new Event Manager

Hi,

I'm trying to create my switch_event by using Event Manager.

And I got this issue: "undefined reference to `__event_type_switch_event' " when submitting my event:

    struct switch_event *event = new_switch_event();

    event->key_id = 1;
    event->pressed = true;
    EVENT_SUBMIT(event);
I already declared the event by EVENT_TYPE_DECLARE(switch_event) and enabled CONFIG_EVENT_MANAGER=y
What am I missing?
Parents Reply Children
No Data
Related