zig-help

21196 threads · Page 110 of 424

is there some way to ensure an error is thrown if a value isn't locked and is accessed? 5 messages
map3 how to infer array size and type at compile time? 2 messages
Answered
Alternate EntryPoint, os_tag issues 11 messages
Build System 0.14.x Answered
Cast an array/slice from `[]const u32` to `[]const enum(u32) { _ }` 4 messages
Answered
Is there such a thing as []const *const i32? 12 messages
0.14.x Standard Library New User 0.13.x
Why `Self = @This()` and not just @This? 9 messages
Answered
Trying to migrate from @cImport to addTranslateC and got ZIG errors. 9 messages
Answered
Im trying to explore using zig with embedded v8 5 messages
0.13.x
How to correctly evaluate this inline assembly expression at compile time? 10 messages
0.14.x Answered
packed enum to u8 bytes? 22 messages
Splitting methods into separate modules 4 messages
if expressions with multiple "else if" 4 messages
Answered
build.zig things 11 messages
Answered
slice an array 4 messages
Answered
How do you link zglfw on linux? 4 messages
New User
Why is nothing marked pub in zglfw? 2 messages
spread operator for structs 6 messages
layout sanity check 45 messages
What's the idiomatic way to fail a build? 6 messages
Build System 0.14.x Standard Library Answered
Why this fails: ?usize orelse ?usize orelse @compilerError 3 messages
Finding `.container_field_init` default value? 6 messages
0.13.x
create fields with @Type 6 messages
Good Code Structure to modify value of "|i|" in for loop 2 messages
New User
Linker issue with C Project (libmprompt) 8 messages
Build System New User
Concise way to specify a negative usize value 21 messages
Answered
crash regarding function returning a comptime-int sized array of tuples 5 messages
Compiler Answered 0.13.x
error setting std.heap.page_min_size on freestanding+riscv64 4 messages
Answered
Convert slice to array at comptime 2 messages
Answered
What's the difference between struct and file like struct 4 messages
Building -ofmt=c output with GCC 3 messages
Answered
Invalid record (Producer: 'zig 0.14.0' Reader: 'LLVM 18.1.7') 4 messages
Why dont i need to free a owned slice? 28 messages
Answered
wasip2 3 messages
Generate Enum Fields at Comptime 6 messages
Answered 0.13.x
How to modify string literal at compile time? 8 messages
Answered 0.13.x
PTRACE_GETREGS not storing registers in supplied buffer 23 messages
0.14.x Standard Library Compiler
Use Vector(3, f32) or Vector(4, f32). Does it matter? 2 messages
0.14.x Standard Library New User Answered
File to []const u8 at compilation 4 messages
Inconsistent switch and while behavior 3 messages
0.14.x Compiler Answered
Call functions from C source file during the build process 18 messages
Build System Answered
"coercion" without panicking 6 messages
What is going on with the formatting? 2 messages
New User Answered
extremely confusing error output 7 messages
Build System 0.14.x
Trying to link static C libraries, no success 30 messages
Build System Compiler New User
Incorrect "struct depends on itself" error 3 messages
Bizarre error when defining a throwaway in-memory Reader 18 messages
Answered
how to override std.start? 14 messages
Answered
any doc about the memory layout of the union type? 9 messages
bizarre behavior from zig-lsp in vscode 11 messages
0.14.x
how to properly identify a string 6 messages
Answered