In this example the 0.13.0 version zip file was downloaded from that page.
Code: Select all
zig-windows-x86_64-0.13.0.zip
Code: Select all
c:\zig\
Code: Select all
zig.exe
3. Add the following folder location to the PATH environment variable:
Code: Select all
c:\zig\
4. Start the Zeus IDE and check the PATH has been correctly configure by using the Tools, DOS Command Line menu to run the following command:
Code: Select all
zig version
If instead the following output is produced re-check the PATH settings as this output indicates that PATH setting is wrong:0.13.0
5. Start Zeus and use the Options, Document Types menu to edit the Zig Document Type and in the Compiler section make sure the following compiler command is defined:'zig' is not recognized as an internal or external command, operable program or batch file.
Code: Select all
zig build-exe "$fn"
6. Using the Zig documentation found here: https://ziglang.org/documentation/0.13.0/#Hello-World
Using the example found in the link above create a test.zig file containing the following code:
Code: Select all
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("Hello, {s}!\n", .{"world"});
}
8. With the test.zig file as the active window, use the Macros, Execute 'tast.exe' menu to run the executable file which should result in the following output:
Cheers JussiHello, world!