Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bhundt opened this issue Aug 1, 2024 · 1 comment
Open

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

bhundt opened this issue Aug 1, 2024 · 1 comment

Comments

@bhundt
Copy link

bhundt commented Aug 1, 2024

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?

@otto-link
Copy link

This operator has been included in ImGui a few month ago but is already present in the node editor, hence the conflict. I think this has been fixed in the dev branch of the node editor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants