#Build.zig getting an unknown error
1 messages · Page 1 of 1 (latest)
I put the wrong error sorry:
exe.root_module.addImport("discord.zig", dzig.module("discord.zig"));
^
/root/DiscordZig/build.zig:11:1: note: use 'var' or 'const' to declare variable
exe.root_module.addImport("discord.zig", dzig.module("discord.zig"));
^~~```
This is the error i got
And the build.zig I gave is the whole file
it's missing const std = @import("std"); pub fn build(b: *std.Build) void { ... }, so if it's the whole file that's the problem
Ok