I’m trying to call tdlib-json from zig
Version: 0.12.0-dev.3653+e45bdc6bd
const td = @cImport({
@cInclude("td/telegram/td_json_client.h");
}); pub fn main() void{
_ = td.td_json_client_create();
}
Compiled with
zig build-exe telez.zig -I tdlib/include -L tdlib/lib -ltdjson
And the crash is
Segmentation fault at address 0x0
???:?:?: 0x0 in ??? (???)