zig-help
About Debug mode, why it is "No reproducible build requirement"?
build.zig settings for C libraries
0.11.x
Compiler
Pinned struct proposal 7769 questions
Is there a way to skip formatting for an enum?
How to link c libraries in build.zig
New User
Compile Multiple Static libs into a DLL
char to slice
Answered
Link against local C/++ library
Doc about Generic Data Structures
0.11.x
New User
Answered
Dumb question... Why does deinit take an allocator?
Alloc with initialized value
How to avoid declaring structs multiple times?
making disk backed array
Incorrect packed struct assignment
0.11.x
Answered
New User
0.13.x
Unable to find module
no member named 'clock_nanosleep'
Access enum field by ordinal/index
Standard Library
0.13.x
How to create a multidimensional array at runtime?
0.11.x
New User
how discover the source of error: too few arguments?
New User
error: lld-link: undefined symbol: WinMain
How to implement a data structure like Go's map[string]any
Standard Library
0.11.x
Compiler
New User
How to include local C header
Undefined references in LLVM LineEditor when linking zig2
Compiler
New User
0.13.x
while loop issue
Answered
Package manager: point to local directory
Answered
why doesn't `const x: u32 = <u16> * <u16>` automatically widen to u32? (0.11.0)
expected type '*[]u8', found '*u8'
Answered
Code formatting puts all conditions in a single line
Answered
project organization 0.12
Zig with C++
stdout writer not printing correct output
New User
error: type '?*cimport.struct_SDL_Surface' does not support field access
0.13.x
Inlining expression
Checking if a type is instance of atomic.Value(T)
cannot understand the error message
0.11.x
New User
To panic or to try?
Checking for undefined values
Comptime code compiles but doesn't do what I expected
Answered
Compile error when slicing ptr to an array.
0.11.x
Compiler
New User
Indexing to certain fields.
Answered
how to trace "unable to evaluate compile time expression"?
Parse json where value could be 2 completely distinct types with no type marker
Answered
ArrayList into a string
New User
Answered
0.13.x
Making a function `inline` seems to change whether it can be deduced as `comptime`
Answered
Zig Build: Create module from a directory?
Answered
0.13.x
Is it possible to get a struct representing the current functions stackframe during comptime?
Answered
Simple comptime example confusion
How to correctly return a heap allocated slice of bytes?
streamUntilDelimiter: what error to catch to signal the end of a file?
how to check if a specific float can be losslessly converted to the specified integer type?
Answered