Skip to content

error: undefined reference to typeinfo #5

@SailingDreams

Description

@SailingDreams

FYI
I got a linker error when trying to build a android library using another library that has the TrimWright .h and .cpp in it.
The error is:
out/target/product/myExperiment/obj_arm/SHARED_LIBRARIES/libneorender_intermediates/src/UsRenderer.o:UsRenderer.cpp:typeinfo for gfx::UsRenderer: error: undefined reference to 'typeinfo for StateMachineTrimWright::FSM'

The error was resolved by making the function below non virtual (it doesn't make sense to me why this would be a linker issue).

// This dispatches an event to the current state.
// It doesn't generally need to be overridden by child classes.
//virtual void dispatch(const Event* event);
void dispatch(const Event* event);

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