Compile errors when compiling imgui-1.91.5-docking on windows using clang++ #8183
6413
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiling docking branch 1.91.5 on Windows, I got errors mainly from imgui using
offsetof
in static_asserts where first parameter is expected to be bool-constexpr. Since in Windows's clangoffsetof
uses reinterpret_cast, which is not constexpr expression.This works in Linux, since it uses
__builtin_offsetof
, and MSVC seems to quietly pass it as well. Am I missing something from compile parameters or has this not been taken accounted for? I have included the compile errors in the txt file below.Compile parameters
clang++ -std=c++2a -DIMGUI_IMPL_OPENGL_LOADER_CUSTOM -DIMGUI_DEFINE_MATH_OPERATORS -c imgui_draw.cpp -o imgui_draw.o
Compiler info
compile_errors.txt
Beta Was this translation helpful? Give feedback.
All reactions