Flix01 / imgui

Dear ImGui Addons Branch = plain unmodified dear imgui plus some extra addon.
https://github.com/Flix01/imgui/wiki/ImGui-Addons-Branch-Home
MIT License
395 stars 34 forks source link

Compilation errors on Windows (using glut / glew fs system) #7

Closed edselmalasig closed 7 years ago

edselmalasig commented 7 years ago

main.cpp imgui.cpp ../../imgui.cpp(612): warning C4005: 'IMGUI_DEFINE_PLACEMENT_NEW': macro redefinition ../../imgui.cpp(612): note: command-line arguments: see previous definition of 'IMGUI_DEFINE_PLACEMENT_NEW' ../../imgui.cpp(1975): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\projectwindows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(1975): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(2126): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2139): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2152): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2152): error C2661: 'ImMax': no overloaded function takes 1 arguments ../../imgui.cpp(2185): error C2676: binary '+=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2274): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2274): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2275): error C2676: binary '+=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2276): error C2676: binary '+=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2277): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2278): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2615): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2723): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2727): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2727): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui.cpp(2727): error C2088: '+': illegal for struct ../../imgui.cpp(2727): error C2664: 'void ImDrawList::AddImage(ImTextureID,const ImVec2 &,const ImVec2 &,const ImVec2 &,const ImVec2 &,ImU32)': cannot convert argument 4 from 'ImU32' to 'const ImVec2 &' ../../imgui.cpp(2727): note: Reason: cannot convert from 'ImU32' to 'const ImVec2' ../../imgui.cpp(2727): note: No constructor could take the source type, or constructor overload resolution was ambiguous ../../imgui.cpp(2728): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2728): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui.cpp(2728): error C2088: '+': illegal for struct ../../imgui.cpp(2728): error C2664: 'void ImDrawList::AddImage(ImTextureID,const ImVec2 &,const ImVec2 &,const ImVec2 &,const ImVec2 &,ImU32)': cannot convert argument 4 from 'ImU32' to 'const ImVec2 &' ../../imgui.cpp(2728): note: Reason: cannot convert from 'ImU32' to 'const ImVec2' ../../imgui.cpp(2728): note: No constructor could take the source type, or constructor overload resolution was ambiguous ../../imgui.cpp(2729): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2729): note: while trying to match the argument list '(const ImVec2, const ImVec2)' ../../imgui.cpp(2729): error C2664: 'void ImDrawList::AddImage(ImTextureID,const ImVec2 &,const ImVec2 &,const ImVec2 &,const ImVec2 &,ImU32)': cannot convert argument 5 from 'ImU32' to 'const ImVec2 &' ../../imgui.cpp(2729): note: Reason: cannot convert from 'ImU32' to 'const ImVec2' ../../imgui.cpp(2729): note: No constructor could take the source type, or constructor overload resolution was ambiguous ../../imgui.cpp(2730): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2730): note: while trying to match the argument list '(const ImVec2, const ImVec2)' ../../imgui.cpp(2730): error C2664: 'void ImDrawList::AddImage(ImTextureID,const ImVec2 &,const ImVec2 &,const ImVec2 &,const ImVec2 &,ImU32)': cannot convert argument 5 from 'ImU32' to 'const ImVec2 &' ../../imgui.cpp(2730): note: Reason: cannot convert from 'ImU32' to 'const ImVec2' ../../imgui.cpp(2730): note: No constructor could take the source type, or constructor overload resolution was ambiguous ../../imgui.cpp(2926): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2926): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(2926): error C2088: '+': illegal for struct ../../imgui.cpp(2939): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\projectwindows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2939): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(2945): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2946): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2947): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2951): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2952): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2953): error C2676: binary '_': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(2957): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(2957): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(2957): error C2088: '+': illegal for struct ../../imgui.cpp(2957): error C2660: 'ImDrawList::AddTriangleFilled': function does not take 2 arguments ../../imgui.cpp(3061): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(3061): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(3061): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(3082): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(3082): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(3082): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(3222): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(3647): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(3647): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(3647): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'ImVec2' to 'const ImVec4 &' ../../imgui.cpp(3647): note: Reason: cannot convert from 'ImVec2' to 'const ImVec4' ../../imgui.cpp(3647): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called ../../imgui.cpp(3694): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(3694): error C2661: 'ImClamp': no overloaded function takes 2 arguments ../../imgui.cpp(3884): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4009): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4009): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4013): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\projectwindows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4013): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4013): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4013): error C2661: 'ImMax': no overloaded function takes 1 arguments ../../imgui.cpp(4013): error C2661: 'ImClamp': no overloaded function takes 2 arguments ../../imgui.cpp(4075): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4075): error C2661: 'ImMax': no overloaded function takes 1 arguments ../../imgui.cpp(4075): error C2665: 'SetWindowPos': none of the 4 overloads could convert all the argument types c:\users\edsel malasig\documents\projectwindows\lib\imgui-2015-10-addons\imgui.h(156): note: could be 'void ImGui::SetWindowPos(const char ,const ImVec2 &,ImGuiSetCond)' c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\imgui.h(152): note: or 'void ImGui::SetWindowPos(const ImVec2 &,ImGuiSetCond)' ../../imgui.cpp(4075): note: while trying to match the argument list '(ImGuiWindow *, int)' ../../imgui.cpp(4099): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4099): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4108): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4108): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4109): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4109): error C2661: 'ImMin': no overloaded function takes 1 arguments ../../imgui.cpp(4140): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4140): error C2661: 'ImMax': no overloaded function takes 1 arguments ../../imgui.cpp(4140): error C2661: 'ImMin': no overloaded function takes 1 arguments ../../imgui.cpp(4162): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4162): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'const ImVec2' to 'const ImVec4 &' ../../imgui.cpp(4162): note: Reason: cannot convert from 'const ImVec2' to 'const ImVec4' ../../imgui.cpp(4162): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called ../../imgui.cpp(4182): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4182): error C2660: 'ApplySizeFullWithConstraint': function does not take 1 arguments ../../imgui.cpp(4211): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4211): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4211): error C2088: '+': illegal for struct ../../imgui.cpp(4223): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4223): error C2088: '-': illegal for struct ../../imgui.cpp(4223): error C2660: 'ImDrawList::AddLine': function does not take 2 arguments ../../imgui.cpp(4237): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4237): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui.cpp(4238): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4238): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui.cpp(4246): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4246): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4246): error C2088: '+': illegal for struct ../../imgui.cpp(4247): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4247): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4247): error C2664: 'void ImDrawList::AddRect(const ImVec2 &,const ImVec2 &,ImU32,float,int,float)': cannot convert argument 2 from 'ImU32' to 'const ImVec2 &' ../../imgui.cpp(4247): note: Reason: cannot convert from 'ImU32' to 'const ImVec2' ../../imgui.cpp(4247): note: No constructor could take the source type, or constructor overload resolution was ambiguous ../../imgui.cpp(4249): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4249): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4249): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4249): error C2660: 'ImDrawList::AddLine': function does not take 2 arguments ../../imgui.cpp(4263): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4263): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4309): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4309): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4309): error C2660: 'ImGui::CloseButton': function does not take 2 arguments ../../imgui.cpp(4315): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4315): note: while trying to match the argument list '(ImVec2, const ImVec2)' ../../imgui.cpp(4318): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(4318): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(4867): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(4868): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5047): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5126): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5144): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5165): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5342): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(5342): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(5372): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(5372): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(5372): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'ImVec2' to 'const ImVec4 &' ../../imgui.cpp(5372): note: Reason: cannot convert from 'ImVec2' to 'const ImVec4' ../../imgui.cpp(5372): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called ../../imgui.cpp(5403): error C2676: binary '-': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui.cpp(5403): error C2228: left of '.y' must have class/struct/union ../../imgui.cpp(5406): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(5406): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui.cpp(5406): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'const ImVec2' to 'const ImVec4 &' ../../imgui.cpp(5406): note: Reason: cannot convert from 'const ImVec2' to 'const ImVec4' ../../imgui.cpp(5406): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called ../../imgui.cpp(5417): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(5417): note: while trying to match the argument list '(ImVec2, const ImVec2)' ../../imgui.cpp(5417): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'ImVec2' to 'const ImVec4 &' ../../imgui.cpp(5417): note: Reason: cannot convert from 'ImVec2' to 'const ImVec4' ../../imgui.cpp(5417): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called ../../imgui.cpp(5451): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui.cpp(5451): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imgui.cpp(5451): error C2664: 'ImRect::ImRect(ImRect &&)': cannot convert argument 1 from 'ImVec2' to 'const ImVec4 &' ../../imgui.cpp(5451): fatal error C1003: error count exceeds 100; stopping compilation imgui_draw.cpp ../../imgui_draw.cpp(17): warning C4005: 'IMGUI_DEFINE_PLACEMENT_NEW': macro redefinition ../../imgui_draw.cpp(17): note: command-line arguments: see previous definition of 'IMGUI_DEFINE_PLACEMENT_NEW' ../../imgui_draw.cpp(447): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(448): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(459): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(460): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(461): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(462): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(473): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(473): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imguidraw.cpp(479): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(481): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(482): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(482): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(483): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(509): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(510): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(511): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(512): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(513): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(514): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(515): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(516): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(527): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(527): note: while trying to match the argument list '(ImVec2, ImVec2)' ../../imguidraw.cpp(533): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(535): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(536): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(537): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(537): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(538): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(538): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(539): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(540): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(578): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(579): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(627): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(628): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(638): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(638): note: while trying to match the argument list '(const ImVec2, const ImVec2)' ../../imguidraw.cpp(644): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imguidraw.cpp(646): error C2676: binary '=': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(649): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(650): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(650): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(804): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(804): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(805): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(805): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(814): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(814): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imgui_draw.cpp(814): error C2676: binary '-': 'const ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(1531): error C2678: binary '+': no operator found which takes a left-hand operand of type 'const ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(1531): note: while trying to match the argument list '(const ImVec2, ImVec2)' ../../imguidraw.cpp(1536): error C2676: binary '': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(1537): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(1537): note: while trying to match the argument list '(ImVec2, const ImVec2)' ../../imgui_draw.cpp(1539): error C2676: binary '*': 'ImVec2' does not define this operator or a conversion to a type acceptable to the predefined operator ../../imgui_draw.cpp(1540): error C2678: binary '+': no operator found which takes a left-hand operand of type 'ImVec2' (or there is no acceptable conversion) c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguistring/imguistring.h(221): note: could be 'const ImString operator +(ImString,const ImString &)' ../../imgui_draw.cpp(1540): note: while trying to match the argument list '(ImVec2, const ImVec2)' imgui_demo.cpp Generating Code..

command li

Flix01 commented 7 years ago

Well, you should at least specify your system (it looks like Windows, isn't it?), the complete compiler command line and how you're using imguifilesystem.h/cpp: are you using them alone ?

P.S. Reading README_FIRST.txt might help. P.S.2 Are you using this command-line ?:

# With GLUT + GLEW static: [GLEW is necessary for all Windows bindings except Direct3D9: here we use the static version to save one .dll]
cl /nologo /O2 /MT /I"../../" main.cpp ../../imgui.cpp ../../imgui_draw.cpp ../../imgui_demo.cpp /D"IMGUI_INCLUDE_IMGUI_USER_H" /D"IMGUI_INCLUDE_IMGUI_USER_INL" /D"IMGUI_USE_GLUT_BINDING" /D"IMGUI_USE_GLEW" /D"GLEW_STATIC" /D"WINVER=0x0501" /D"_WIN32_WINNT=0x0501" /D"IMGUIBINDINGS_CLEAR_INPUT_DATA_SOON" /link /out:imgui_addons_example1.exe glut32.lib glew32s.lib opengl32.lib gdi32.lib Shell32.lib user32.lib kernel32.lib

P.S.3 Your errors seem to be caused by a missing definition before the inclusion of _imguiinternal.h:

#include "imgui.h"
#define IMGUI_DEFINE_PLACEMENT_NEW
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui_internal.h"

However this shouldn't happen if you use the command-line above.

edselmalasig commented 7 years ago

cl /nologo /O2 /MT /I"../../" main.cpp ../../imgui.cpp ../../imgui_draw.cpp ../../imgui_demo.cpp /I "../../../glew-1.13.0/include" /I "../../../freeglut/include" /D"IMGUI_INCLUDE_IMGUI_USER_H" /D"IMGUI_INCLUDE_IMGUI_USER_INL" /D"IMGUI_USE_GLUT_BINDING" /D"IMGUI_USE_GLEW" /D"GLEW_STATIC" /D"WINVER=0x0501" /D"_WIN32_WINNT=0x0501" /D"IMGUIBINDINGS_CLEAR_INPUT_DATA_SOON" /link /out:imgui_addons_example1.exe glut32.lib glew32s.lib opengl32.lib gdi32.lib Shell32.lib user32.lib kernel32.lib main.cpp imgui.cpp c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguihelper/imguihelper.cpp(380): error C2059: syntax error: 'const' c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguihelper/imguihelper.cpp(380): error C2059: syntax error: ')' c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguihelper/imguihelper.cpp(380): error C2143: syntax error: missing ';' before '{' c:\users\edsel malasig\documents\project_windows\lib\imgui-2015-10-addons\addons./imguihelper/imguihelper.cpp(380): error C2447: '{': missing function header (old-style formal list?) imgui_draw.cpp imgui_demo.cpp

Flix01 commented 7 years ago

Yes, you're right :confused: . It depends on a recent 2D convex-decomposition addition that it's never used anywhere in the code [see my posts here: https://github.com/ocornut/imgui/issues/760] and that I could drop in the future.

Anyway to fix it you can just comment out line 380 in _c:\users\edsel malasig\documents\projectwindows\lib\imgui-2015-10-addons\addons./imguihelper/imguihelper.cpp (yes: that line is never used too :smile: ). I'll do it in the next commit.

If you don't want to wait just add /D"NO_IMGUIHELPER_DRAW_METHODS_CONCAVEPOLY" to the command line and it should compile fine.

Hope this helps.

[Edit] I've re-edited your title, so that it's clear it's related to Windows.

Flix01 commented 7 years ago

Does it work now ?

Flix01 commented 7 years ago

Bump :boom: