Skip to content

Compilation Error: error: redefinition of 'operator==' #301

Open
@bhundt

Description

@bhundt

Hi, I am trying to include imgui-node-editor in my project but I get the following compilation error:

imgui_node_editor.cpp
In file included from ../vendor/NodeEditor/src/imgui_node_editor.cpp:12:
In file included from ../vendor/NodeEditor/include/imgui_node_editor_internal.h:27:
In file included from ../vendor/NodeEditor/include/imgui_extra_math.h:71:
../vendor/NodeEditor/include/imgui_extra_math.inl:22:13: error: redefinition of 'operator=='
inline bool operator==(const ImVec2& lhs, const ImVec2& rhs)
            ^
../vendor/ImGui/include/imgui.h:2801:23: note: previous definition is here
static inline bool    operator==(const ImVec2& lhs, const ImVec2& rhs)  { return lhs.x == rhs.x && lhs.y == rhs.y; }

I included the imgui *.cpp's and the imgui-node-editor *.cpp's in my project and try to compile...any idea what could be wrong here?

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