zig-help
favorite error message so far
Can I initialize a slice inline?
Answered
Possible to get the address of tagged union prior to initialization?
how i use vulkan memory allocator in zig
Is there a way to explicitly prevent a segment of code running comptime?
Standard Library
Compiler
0.11.x
New User
unknown type name 'pthread_rwlock_t'
Answered
best way to create a unix socket
Answered
Beginner question: compiler complains about comptime when creating struct
Standard Library
0.11.x
New User
Answered
refactor long generic arguments
New User
comptiming a table of structs
Answered
@This() within @Type?
Write dynamically named union field comptime
Compiler
Answered
0.13.x
Vague error: access of union field 'Pointer' while field 'Struct' is active
Standard Library
0.11.x
Compiler
New User
How do I check if 2 unions have the same active type?
New User
0.13.x
Casting from a pointer to a single-item slice
Issues with calling into RocksDB
How do I call a slice of machine code as a function?
Answered
type check an entire `.zig` file, including unused functions.
New User
Answered
comptime-only type depends on runtime control flow
New User
Answered
0.13.x
Statically linking on macOS
0.11.x
Is it possible to have test setup functions and test teardowns?
Answered
Create a folder inside `zig-out` from a `build.zig`?
Answered
Weird error message on line `const std = @import("std");`
Answered
Add padding within packed structs?
0.11.x
New User
Answered
how to compare a comptime literal with a runtime-known string as a one liner?
How does @ work?
How to deal with arrays in a struct (c interop)?
Does anyone have a simple example using std.rand ?
Conditional Method Inclusion
New User
0.13.x
Interface using union(enum)
Construct pointers from unaligned integers
Adding struct into another struct causes Segfault
0.11.x
New User
Reading from a text file
New User
cImport fails with `zig test`
How to initialize a u32 with a four-byte string
New User
Answered
0.13.x
No place for `[N]T` in `packed union` ?
Compiler Crash attempted to use null value
Compiler
0.13.x
initialize struct as 0
Not able to pass arrays of unknown size as function parameter?
New User
Answered
build.zig.zon without a build.zig in the inner dependency
Standard Library
0.13.x
Diagnostics for `error: FileNotFound`
0.11.x
Compiler
Custom format not shown in test
Answered
if else evaluated as expression; need additional instruction in the if branch
Standard Library
0.11.x
New User
Problem building my code
Get `zig build test` to run tests for modules that are imported into the main module file?
Handle user input bigger than buff
Answered
How to use STB headers from a zig library?
Answered
Guide to creating a library usable with `build.zig.zon`?
Comptime Generation
@bitCast from slice to struct