Closed yurivict closed 5 years ago
I don't get this error when I build with clang-6.
The git project includes imgui as a submodule, and that submodule is locked to commit e0cab5664adf02c030f9cf2a05d2c334638a85f8. Curv will only compile with that specific version of imgui. This is because scale_picker.cc copies some of the internal implementation details of imgui. I created my own ImGui widget by copy, paste and modify of an existing ImGui widget.
In this error message:
/usr/ports/math/curv/work/curv-0.4-83-g49b28a58/extern/imgui/imgui_internal.h:543:8: note: previous definition is here struct ImGuiDataTypeInfo
there should not be a definition of ImGuiDataTypeInfo on line 543 of imgui_internal.h, which makes me wonder if you are deliberately using a different version of imgui than what is specified in the Curv git configuration. ImGuiDataTypeInfo is not declared in a header file, it is defined in imgui_widgets.cpp, which is why I was forced to copy the type definition in the first place.
Thanks, the version was wrong.
clang-6 prints these errors: