zig-help
How to use windows.h in zig?
Compiler
0.13.x
comptime array initialization keeps on returning the last item as garbage
Passing zig string as cstring to function.
How can I use a type as part of a hashmap key?
Defining strings in function parameters
New User
Answered
0.13.x
Your comparator is not a valid strict-weak ordering error while compiling C++
Compiler
Answered
translating C bitfield
What's the correct way of comparing string ([]const u8)?
New User
Answered
Reading from stdin hangs
Answered
How can I sort arrays of variable lengths?
Capture union value in labeled switch statement
0.14.x
Answered
What's the correct way of checking if a type is an array of X?
New User
Answered
0.13.x
linking libwebp
Answered
What is the correct way to coerce this multidimensional array into a slice?
Is there a way to see if a reader has a value?
How can I add Zig itself as a module?
Answered
Why doesn't this code store the strings read from a file?
Lazy path in addCSourceFiles
Answered
vararg function arguments.
Why std.json.parseFromSlice(std.ArrayList(T)) is not working
0.14.x
Answered
Using `zig fetch` on non zig packages
Answered
Prevent hardcoding of absolute path to shared library in binary
Build System
Answered
0.13.x
How to selectively execute code blocks based on optimization mode
0.14.x
New User
Answered
how to pass a generated Lazypath of a text file to a module?
Build System
0.14.x
Answered
IDT doesn't call handler
Any hashmap alternatives for storing generic state inside a struct?
0.13.x
How do I cast a pointer to [*]u8
New User
0.13.x
Weird const thing
Standard Library
New User
0.13.x
Why doesn't this work at comptime
Compiler
0.13.x
Cannot produce output
Answered
New User
0.13.x
Easy parser?
Answered
Installed from WinGet. Not sure where Zig is.
Answered
Constant lld-link issues using external include headers
Build System
0.14.x
Compiler
New User
convert ?*anyopaque to *const fn (*Widget) void
0.13.x
How to generate the root source file for a compile module
Build System
0.14.x
Can't index tuple with runtime value
Answered
what's the best way to read a file
Answered
How to create arbitrary files for intermediate build steps
0.14.x
New User
Build System
Standard Library
Answered
What does passing without a pointer mean?
Choose (at build time) to use zig or provided C implementation
Answered
DllMain
0.14.x
Dynamic linking to .so in local directory
New User
Answered
Help installing the zig-network library
Build System
New User
Answered
Is it possible to have an dash within an enum?
Calling zig functions from external object file
Build System
Answered
0.13.x
What is u2 in const Value = enum(u2) { zero, one, two } ?
Answered
Looking for help with memory leak
Answered
0.13.x
Calling specific functions from a file, instead of main
`inline` or not `inline`: here is the case
Zig idiomatic way to handle descriptive errors.