zig-help
Checking for "undefined" causing thread panic
New User
Answered
0.13.x
expected type '*u8', found '*const u8'
New User
What is the ws2 module?
Answered
Adding variable in the middle of a "string"
force infer in zig?
Answered
Creating an universal macho binary
Build System
New User
Answered
0.13.x
Debug printing inside tests run with: zig build test
Good way to do context
Initialising array with struct
Answered
enums + arrays
Answered
Time function execution
Answered
Strange issue with ArrayList
[solved] Printing all values from MultiArrayList(T)
[solved] Explicit discard of any errors
[solved] How to access a file's struct members from inside a struct defined in that file?
C++-type polymorphism and VFT comptime-ness
Answered
checking if pointer points to corrupted or freed memory
0.14.x
Answered
build step that prints a string?
Answered
Referring to struct field in @Type
avoid error handling with empty error{}
Answered
Struct `const` fields, or a way to `@compileError` on mutation
zig build failing with exit code 1, no output
How does `[]const []const u8` work in zig?
How do I convert `[*c]u8` (C string) into `[]const u8`?
Answered
error: no module named 'build_options' available within module root
Answered
How to download a file and save it as a file using zig?
Answered
error: `Windows.h` file not found
Build System
Compiler
Answered
0.12.x
Where is .addModule()? How do I add packages in 0.13.0
Convert integer to string
-femit-doc
Feel like I have a use after free
Answered
modules do not work for unit tests
Build System
New User
Answered
0.12.x
Why does bytesAsValues return bogous values and what would be the correct way to reinterpet_cast?
Answered
Check run/test step
Answered
Can't switch optional type
Answered
error: incompatible types: 'usize' and 'i12'
Answered
error: invalid operands to binary bitwise expression: 'Vector' and 'Vector'
0.13.x
32-bit trying to link to 64-bit crt?
Code structure for methods that might mutate, might return new instance
comptime call of extern function?
New User
Proper `build.zig` for building a shared library.
Clean up `Local Variable is Never Mutated` compiler warning elegantly in ptr / buffer writing code.
Standard Library
Compiler
0.13.x
[solved] How to return value from switch statement block into a variable
Convert usize to f64
Answered
[solved] How to track a cyclic dependency error?
Equivalent to C's `stdlib.h` `system()` in Zig (non-capturing)
Convert bytes to T slice
Answered
comptime / setEvalBranchQuota
New User
0.13.x
Create a switch field from an array?
How to test @compileError()s
Answered