zig-help

21196 threads · Page 307 of 424

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