We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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}); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SOURCE: https://discord.com/channels/842007348272169002/842008652377751582/1191840879812554834
zig.build
TODO: Add under examples
The text was updated successfully, but these errors were encountered: