zig-help

21196 threads · Page 293 of 424

Get smallest type that represents an integer literal 7 messages
New User Answered
Switch on anyerror 41 messages
incorrect errors from called function 8 messages
ZLS is not working properly in vscode 5 messages
New User
Incorrect upcast in Reader 3 messages
New User Answered
What would be the proper way to use to for loop in this situation? 10 messages
std.os.bind error ? 3 messages
New User
ReleaseFast (problem) vs ReleaseSafe (okay) how to debug 19 messages
How to transform a type X to [*c]X 12 messages
How to fail in build.zig? 10 messages
I think I found a bug in the std lib for parsing integer. 9 messages
Answered
Redirect child process stdout to stderr 5 messages
How include functions from another file as methods of a struct (and be able to use "dot syntax")? 18 messages
Answered
Replace parts of std? 2 messages
[solved] Invalid option: -Dcpu using ZGL 9 messages
0.13.x
Only emit binary for a test 2 messages
0.11.x New User Answered
Writer interface like Allocator 4 messages
Answered
export fn string parameters 6 messages
How to setup argv_ptr for execvpeZ 2 messages
`reader.readAllAlloc` seems ignoring `$` sign in byte stream 11 messages
Unclear compile error moving to Zig 0.11 11 messages
Compiler 0.11.x
Using raylib with zig.zon 5 messages
New User Answered
freed memory is "leaking" inside a switch? 30 messages
Answered
A very weird bug... 8 messages
Answered
Unexpected Type Mismatch 13 messages
safety of `mprotect` on memory returned by zig allocator 32 messages
Standard Library 0.13.x
how do i create a windows dll? 37 messages
Porting crafting interpreters to zig 108 messages
How to create `HashMap` that can contains any type? 55 messages
Accessing fields in struct 34 messages
std.fs.openDirAbsolute makes exe return 1 in ReleaseFast builds 2 messages
Answered
Array as function argument 22 messages
fail to access member of a cimport struct 6 messages
Answered
How to pass [_][]const u8 {"a", "b"}; into a function? 2 messages
0.11.x New User
The Ziglang Github guide on building LLVM is outdated: Updated instructions wanted. 27 messages
Compiler New User Answered
Contradictory compile error? 2 messages
Answered
Getting array-length of a struct field at comptime 14 messages
Answered
How can you tell if a many-item pointer is sentinel terminated or not using @typeInfo? 2 messages
Answered
cc `error: -lLIB: 'linker' input unused` when trying to compile C 2 messages
Answered 0.13.x
zig cc: can we use atomics on armv6l 12 messages
Testing with different types 2 messages
slice from many item pointer 7 messages
Args printing path of executable 10 messages
lld link: Undefined symbol 179 messages
Answered
Create HashMap with string key and fp 20 messages
Create a generic type w/ an Allocator 4 messages
Why are there zig-cache strings in my release build? 13 messages
Passing struct with internal alloc around using `@intFromPtr` and `@ptrFromInt` 83 messages
New User 0.13.x
About new `zig init` command 7 messages
Am I using defer/errdefer correctly? 5 messages
Answered