<div dir="ltr"><div><div>I currently have a linker error telling me<br><br>undefined reference to `initializer for event.Event`<br><br></div>Event is a struct with a union. Something Like<br><br></div><div>struct Event <br>{<br>    EventType type;<br>    union <br>    {<br>        EventA a;<br>        EventB b;<br>    }<br>}<br><br></div><div>Naming the union makes the linker errors go away.<br></div><div>Can anybody tell me what is going on here?</div><div><br><br></div></div>