Zig Daily Report: Issues with cImport – Expected Type ‘T’, Found ‘T’ with Different Types
const c_one = @cImport({ @cInclude("adwaita.h"); @cInclude("gtk/gtk.h"); }); pub var layout_list: ?*c_one.GtkStringList = null; const c_two = @cImport(@cInclude("gtk/gtk.h")); // could be in different file pub fn main() void { layout_list = c_two.gtk_string_list_new(null); // could be in different file } Compilation Error: main.zig:11:44: error: expected type '?*cimport.struct__GtkStringList', found '?*cimport.struct__GtkStringList' layout_list = c_two.gtk_string_list_new(null); ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ main.zig:11:44: note: pointer type … Read more