You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdep_sokol=b.dependency("sokol", .{
.target=target,
.optimize=optimize,
.with_sokol_imgui=true,
});
dep_sokol.artifact("sokol_clib").addIncludePath(b.path("deps/")); // I have custom cimgui.h which includes the original "cimgui/cimgui.h" from thereexe.root_module.addImport("sokol", dep_sokol.module("sokol"));
And here I got some C++ error:
/Users/namek/.cache/zig/p/122055d69396139fc4b51ba859a2af304608e336572084ed44c5c79504be9ae2aba8/src/sokol/c/sokol_imgui.h:2587:35: error: member reference base type 'ImDrawList **' (aka 'struct ImDrawList **') is not a structure or union
return draw_data->CmdLists.Data[cl_index];
~~~~~~~~~~~~~~~~~~~^~
/Users/namek/.cache/zig/p/122055d69396139fc4b51ba859a2af304608e336572084ed44c5c79504be9ae2aba8/src/sokol/c/sokol_imgui.c:9:10: note: in file included from /Users/namek/.cache/zig/p/122055d69396139fc4b51ba859a2af304608e336572084ed44c5c79504be9ae2aba8/src/sokol/c/sokol_imgui.c:9:
#include "sokol_imgui.h"
^
Any ideas what's wrong?
My (c)imgui is "1.89.7"
The text was updated successfully, but these errors were encountered:
#ifndef __IMGUI_ZIG__H
#define__IMGUI_ZIG__H// without this ifndef it would error about redefining it
#ifndef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
#defineCIMGUI_DEFINE_ENUMS_AND_STRUCTS1
#endif
#include"./cimgui/cimgui.h"// because Zig doesn't support c.igGetCurrentWindow().*.DC.CursorPosPrevLine;
EXTERN ImGuiWindowTempData* igGetCurrentWindowRead_DC();
EXTERN ImGuiID igDockBuilderGetNodeID(ImGuiID node_id);
#endif
I tried including the original cimgui.h by doing the path change like this:
Hi!
I have added sokol-zig to my project per this url in build.zig.zon: git+https://github.com/floooh/sokol-zig.git#ca76d1e66b2539a6614535aaad39d0168985a2e9
and then of course my build.zig:
And here I got some C++ error:
Any ideas what's wrong?
My (c)imgui is "1.89.7"
The text was updated successfully, but these errors were encountered: