-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
SOURCE: https://discord.com/channels/842007348272169002/842008652377751582/1191840879812554834
export CC="zig cc"
export CXX="zig c++"
cmake ..
make
zig.build
exe.linkLibC();
exe.linkSystemLibrary("mgclient");
TODO: Add under examples
const mgclient = @cImport(
@cInclude("mgclient.h"),
);
pub fn main() !void {
const initialization = mgclient.mg_init();
std.debug.print("we initialized mgclient? {d}\n", .{initialization});
const mg_client_version = mgclient.mg_client_version();
std.debug.print("Here is the mgclient version from zig: {s}\n", .{mg_client_version});
}
Metadata
Metadata
Assignees
Labels
No labels